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 {
13
13
} from '@clack/prompts' ;
14
14
15
15
import commands from './index.mjs' ;
16
- import { Logger } from '../../src/logger/index.mjs' ;
16
+ import logger from '../../src/logger/index.mjs' ;
17
17
18
18
/**
19
19
* Validates that a string is not empty.
@@ -166,7 +166,7 @@ export default async function interactive() {
166
166
167
167
const finalCommand = cmdParts . join ( ' ' ) ;
168
168
169
- Logger . getInstance ( ) . info ( `\nGenerated command:\n${ finalCommand } \n` ) ;
169
+ logger . info ( `\nGenerated command:\n${ finalCommand } \n` ) ;
170
170
171
171
// Step 5: Confirm and execute the generated command
172
172
if ( await confirm ( { message : 'Run now?' , initialValue : true } ) ) {
Original file line number Diff line number Diff line change 1
1
import createMarkdownLoader from '../src/loaders/markdown.mjs' ;
2
- import { Logger } from '../src/logger/index.mjs' ;
2
+ import logger from '../src/logger/index.mjs' ;
3
3
import createMarkdownParser from '../src/parsers/markdown.mjs' ;
4
4
5
5
/**
@@ -43,7 +43,7 @@ export const errorWrap =
43
43
try {
44
44
return await fn ( ...args ) ;
45
45
} catch ( err ) {
46
- Logger . getInstance ( ) . error ( err ) ;
46
+ logger . error ( err ) ;
47
47
process . exit ( 1 ) ;
48
48
}
49
49
} ;
You can’t perform that action at this time.
0 commit comments