UNPKG

gotbit-tools

Version:

GotBit development tool for js

31 lines (23 loc) 818 B
#! /usr/bin/env node const { program } = require('commander') const chalk = require('chalk') const figlet = require('figlet') const create = require('./commands/create') const install = require('./commands/install') console.log( chalk.blueBright(figlet.textSync('gotbit-tools', { horizontalLayout: 'full' })) ) program.name('gotbit-tools').description('tool for js dapp development').version('0.3.0') program .command('create') .description('creates project based on template') .argument('[project]', 'name of template') .option('-d, --dir [directory]', 'name of target dir') .action(create) program .command('install') .description('installs gotbit-tools') .argument('[name]', 'name of gobit-tools') .option('-d, --dir [directory]', 'name of target dir') .action(install) program.parse()