Last active
February 27, 2018 02:23
-
-
Save vmussak/56c9568cc256fe4712b1135f03e7a00d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const comandos = require('commander'); | |
comandos | |
.version('1.0.0') | |
.description('Buscar repositorios do Github'); | |
comandos | |
.command('ola <name>') | |
.alias('o') | |
.description('Testando') | |
.action(name => ola(name)); | |
comandos.parse(process.argv); | |
function ola(name) { | |
console.info(`Olá ${name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment