-
Notifications
You must be signed in to change notification settings - Fork 0
/
stbx-cli.js
executable file
·22 lines (18 loc) · 766 Bytes
/
stbx-cli.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env node
let program = require('commander')
// load package.json to get version
let path = require('path')
let packageJson = require(path.join(__dirname, 'package.json'))
// provide title for the `ps` command
process.title = 'stbx'
program
.version(packageJson.version)
.command('codec', 'encode and decode transactions')
.command('hash', 'compute hash of hexadecimal input')
.command('convert', 'convert PNPRO files to statebox Petri nets')
.command('discrete-wiring', 'create wiring transactions')
.command('contract-api', 'create API wrapper for contract')
.command('crypto', 'cryptographyic operations')
// .command('serve', 'start webserver')
//.command('crypto','work with keypairs')
.parse(process.argv);