Skip to content
Merged
Show file tree
Hide file tree
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 bin/commands/interactive.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from '@clack/prompts';

import commands from './index.mjs';
import { Logger } from '../../src/logger/index.mjs';
import logger from '../../src/logger/index.mjs';

/**
* Validates that a string is not empty.
Expand Down Expand Up @@ -166,7 +166,7 @@ export default async function interactive() {

const finalCommand = cmdParts.join(' ');

Logger.getInstance().info(`\nGenerated command:\n${finalCommand}\n`);
logger.info(`\nGenerated command:\n${finalCommand}\n`);

// Step 5: Confirm and execute the generated command
if (await confirm({ message: 'Run now?', initialValue: true })) {
Expand Down
4 changes: 2 additions & 2 deletions bin/utils.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import createMarkdownLoader from '../src/loaders/markdown.mjs';
import { Logger } from '../src/logger/index.mjs';
import logger from '../src/logger/index.mjs';
import createMarkdownParser from '../src/parsers/markdown.mjs';

/**
Expand Down Expand Up @@ -43,7 +43,7 @@ export const errorWrap =
try {
return await fn(...args);
} catch (err) {
Logger.getInstance().error(err);
logger.error(err);
process.exit(1);
}
};
Expand Down
Loading