Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/history.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Command } from 'commander';
import chalk from 'chalk';
import { existsSync } from 'fs';
import { join } from 'path';
import { join, dirname } from 'path';
import { createDatabaseManagerFromConfigPath, EnvHistoryRecord } from '@/utils/db';

interface HistoryOptions {
Expand Down Expand Up @@ -30,7 +30,7 @@ export function historyCommand(program: Command): void {
.action(async (tag: string | undefined, options: HistoryOptions) => {
try {
const configPath = join(process.cwd(), options.config || './envx.config.yaml');
const configDir = join(process.cwd(), options.config || './envx.config.yaml', '..');
const configDir = dirname(configPath);

console.log(chalk.blue('📚 Viewing environment variable history...'));
console.log(chalk.gray(`📁 Config file: ${options.config}`));
Expand Down
Loading