sovd-cli
v1.0.0
Published
private cli for cbb sov
Downloads
2
Readme
vee-cli
个人脚手架
commander
Node 命令行工具 commander
- API 使用方式介绍
commander.command('add <num> [params]')
.description('描述')
.alias('简称')
.action(function(){ }) //命令处理函数
ora
Elegant terminal spinner
- Example
const ora = require('ora');
const spinner = ora('Loading unicorns').start();
setTimeout(() => {
spinner.color = 'yellow';
spinner.text = 'Loading rainbows';
}, 1000);
inquirer
A collection of common interactive command line user interfaces.
- Example
var inquirer = require('inquirer')
inquirer.prompt([ {
type: 'confirm',
name: 'test',
message: 'Are you handsome?',
default: true
}]).then((answers) => { console.log('结果为:') console.log(answers)})