diff options
Diffstat (limited to 'node_modules/coa/qq.js')
| -rw-r--r-- | node_modules/coa/qq.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/node_modules/coa/qq.js b/node_modules/coa/qq.js new file mode 100644 index 00000000..4aeb9844 --- /dev/null +++ b/node_modules/coa/qq.js @@ -0,0 +1,17 @@ +const run = require('./test/util').run; + +// run(cmd => cmd.arg().name('qwe').end().arg().name('zxc').end().act(function(opts, args) { console.log({opts, args}); }), ['qwe', 'zxc']) // cmd and args +// .then(res => { +// // code +// // stdout +// // stderr +// console.log(res); +// }); + +run(cmd => cmd.opt().name('version').short('v').only().flag().act((opts) => { return 'aasd'; }), ['-v']) // cmd and args + .then(res => { + // code + // stdout + // stderr + console.log(res); + }); |
