Skip to content

Commit

Permalink
chore: add CLI logger (was gitignored)
Browse files Browse the repository at this point in the history
  • Loading branch information
eoinsha committed Sep 30, 2024
1 parent 43ba7e8 commit eecdb7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ core/dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
Expand Down
11 changes: 11 additions & 0 deletions cli/lib/cli-logger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import clc from 'cli-color'

const error = clc.red.bold
const warn = clc.yellow
const info = clc.blue

export const cliLogger = {
info: (...args: any) => { console.error(info(...args)) },
warn: (...args: any) => { console.error(warn(...args)) },
error: (...args: any) => { console.error(error(...args)) }
}

0 comments on commit eecdb7a

Please sign in to comment.