Skip to content

Instantly share code, notes, and snippets.

@vmussak

vmussak/bitnew.js

Last active Apr 2, 2018
Embed
What would you like to do?
const request = require('./request');
const comandos = require('commander');
const { prompt } = require('inquirer');
comandos
.version('1.0.0')
.description('Buscar repositorios do Bitbucket');
let questoes = '???' //Vou explicar isso direitinho daqui a pouco...
comandos
.command('repositorios')
.alias('u')
.description('Buscar repositórios de um usuário')
.action(async () => {
let respostas = await prompt(questoes);
let repos = await request.buscarRepositorios(respostas);
console.info(repos);
});
comandos.parse(process.argv);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.