-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·35 lines (28 loc) · 802 Bytes
/
index.js
File metadata and controls
executable file
·35 lines (28 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env node
const program = require('commander')
const bootstrap = require('./src/bootstrap')
const clone = require('./src/clone')
const setup = require('./src/setup')
const sync = require('./src/sync')
const update = require('./src/update')
program
.command('setup')
.description('Configure Postman Local for first use')
.action(setup)
program
.command('bootstrap')
.description('Generate local files from Postman Collection')
.action(bootstrap)
program
.command('sync')
.description('Sync local files to Postman Collection')
.action(sync)
program
.command('update')
.description('Update collection in the Postman app')
.action(update)
program
.command('clone')
.description('Clone collection into My Workspace')
.action(clone)
program.parse(process.argv)