Skip to content

Commit

Permalink
✨ Add an option to specify whether the output should be colored (fix #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ENT8R committed Sep 9, 2021
1 parent 08f8ab4 commit 40d61ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified assets/carbon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ program
.option('-d, --dev', 'parameter to get the devDependencies', false)
.option('-p, --peer', 'parameter to get the peerDependencies', false)
.option('-b, --bundled', 'parameter to get the bundledDependencies', false)

// The following two options, if present, are automatically detected by chalk
// For more information see: https://github.com/chalk/supports-color/blob/v7.1.0/index.js#L8-L19
.option('--color', 'force colored output')
.option('--no-color', 'force non-colored output')
.parse(process.argv);

async function cli() {
Expand Down

0 comments on commit 40d61ba

Please sign in to comment.