cil: execute command

This commit is contained in:
Thomas Hobson 2021-02-22 23:38:11 +13:00
parent 16b86607b1
commit 1fd3dce31d
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
5 changed files with 257 additions and 0 deletions

14
cli/index.js Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/node
require('yargs')(process.argv.slice(2))
.option('piston-url', {
alias: ['u'],
default: 'http://127.0.0.1:6969',
desc: 'Piston API URL',
string: true
})
.scriptName("piston")
.commandDir('commands')
.demandCommand()
.help()
.wrap(72)
.argv