mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
cil: execute command
This commit is contained in:
parent
16b86607b1
commit
1fd3dce31d
5 changed files with 257 additions and 0 deletions
14
cli/index.js
Executable file
14
cli/index.js
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue