Skip to content

Commit eecdb7a

Browse files
committedSep 30, 2024·
chore: add CLI logger (was gitignored)
1 parent 43ba7e8 commit eecdb7a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 

‎.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ core/dist/
126126
downloads/
127127
eggs/
128128
.eggs/
129-
lib/
130129
lib64/
131130
parts/
132131
sdist/

‎cli/lib/cli-logger.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import clc from 'cli-color'
2+
3+
const error = clc.red.bold
4+
const warn = clc.yellow
5+
const info = clc.blue
6+
7+
export const cliLogger = {
8+
info: (...args: any) => { console.error(info(...args)) },
9+
warn: (...args: any) => { console.error(warn(...args)) },
10+
error: (...args: any) => { console.error(error(...args)) }
11+
}

0 commit comments

Comments
 (0)
Please sign in to comment.