Created
February 27, 2018 02:32
-
-
Save vmussak/28a4f25d1b8df91fb8f9fb6809ece08e 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 request = require('./request'); | |
const comandos = require('commander'); | |
comandos | |
.version('1.0.0') | |
.description('Buscar repositorios do Github'); | |
comandos | |
.command('repositorios do <user>') | |
.alias('r') | |
.description('Buscar repositorios de um usuário') | |
.action(async (user) => { | |
try{ | |
let repos = await request.buscarRepositoriosDo('vmussak'); | |
console.info(repos); | |
} catch (error) { | |
console.error(error); | |
} | |
}); | |
comandos.parse(process.argv); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment