【文件属性】:
文件名称:Plank:Node.js 的 CLI 模块
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-27 05:58:46
JavaScript
板
Node.js 的 CLI 模块
安装
npm install plank
用法
var cli = require('plank')();
cli.setCommands({
test: {
command: function(cli, args) {
cli.log('hi!');
},
help: function(cli) {
cli.log(cli.tabulation + 'Hi, I am the help for this command...');
cli.log(cli.tabulation + 'I describe the command.........\n');
},
settings: {
usage: 'test [a
【文件预览】:
Plank-master
----.gitignore(96B)
----package.json(476B)
----bin()
--------plank(61B)
----index.js(40B)
----README.md(988B)
----lib()
--------command_parser.js(2KB)
--------plank.js(4KB)
--------default_commands.js(5KB)