@serieseight/cli
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -28,6 +28,5 @@ const chalk = require('chalk') | ||
.then(({ user }) => { | ||
console.log( | ||
`Yay, it's ${chalk.bold.green(user)}! My favourie team member.` | ||
) | ||
console.log(` | ||
Yay, it's ${chalk.bold.green(user)}! My favourie team member.`) | ||
}) | ||
} |
13
index.js
@@ -5,2 +5,4 @@ #!/usr/bin/env node | ||
const helloCmd = require('./commands/hello') | ||
const helpCmd = require('./commands/help') | ||
const versionCmd = require('./commands/version') | ||
@@ -10,2 +12,13 @@ const args = process.argv.splice(2) | ||
switch(args[0]) { | ||
case '--help': | ||
case '-h': | ||
case undefined: | ||
helpCmd() | ||
break | ||
case '--version': | ||
case '-v': | ||
versionCmd() | ||
break | ||
case 'hello': | ||
@@ -12,0 +25,0 @@ helloCmd(args) |
@@ -48,3 +48,3 @@ { | ||
}, | ||
"version": "1.2.0" | ||
"version": "1.3.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2589
6
61