Skip to content

Instantly share code, notes, and snippets.

@vmussak
Last active February 27, 2018 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmussak/56c9568cc256fe4712b1135f03e7a00d to your computer and use it in GitHub Desktop.
Save vmussak/56c9568cc256fe4712b1135f03e7a00d to your computer and use it in GitHub Desktop.
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