File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
1313} from '@clack/prompts' ;
1414
1515import commands from './index.mjs' ;
16- import { Logger } from '../../src/logger/index.mjs' ;
16+ import logger from '../../src/logger/index.mjs' ;
1717
1818/**
1919 * Validates that a string is not empty.
@@ -166,7 +166,7 @@ export default async function interactive() {
166166
167167 const finalCommand = cmdParts . join ( ' ' ) ;
168168
169- Logger . getInstance ( ) . info ( `\nGenerated command:\n${ finalCommand } \n` ) ;
169+ logger . info ( `\nGenerated command:\n${ finalCommand } \n` ) ;
170170
171171 // Step 5: Confirm and execute the generated command
172172 if ( await confirm ( { message : 'Run now?' , initialValue : true } ) ) {
Original file line number Diff line number Diff line change 11import createMarkdownLoader from '../src/loaders/markdown.mjs' ;
2- import { Logger } from '../src/logger/index.mjs' ;
2+ import logger from '../src/logger/index.mjs' ;
33import createMarkdownParser from '../src/parsers/markdown.mjs' ;
44
55/**
@@ -43,7 +43,7 @@ export const errorWrap =
4343 try {
4444 return await fn ( ...args ) ;
4545 } catch ( err ) {
46- Logger . getInstance ( ) . error ( err ) ;
46+ logger . error ( err ) ;
4747 process . exit ( 1 ) ;
4848 }
4949 } ;
You can’t perform that action at this time.
0 commit comments