1 | #!/usr/bin/env node
|
2 |
|
3 |
|
4 |
|
5 | 'use strict';
|
6 |
|
7 | const program = require('commander');
|
8 |
|
9 | program
|
10 | .name('fun edge')
|
11 | .description(
|
12 | `Run your serverless application at edge (within local Link IoT Edge environment) for
|
13 | quick development & testing.`)
|
14 | .command('invoke', 'Invoke a function at edge once')
|
15 | .command('start', 'Launch one local Link IoT Edge environment, or create one if none exist')
|
16 | .command('stop', 'Stop the local Link IoT Edge environment');
|
17 |
|
18 | require('../lib/utils/command').registerCommandChecker(program);
|
19 |
|
20 | program.parse(process.argv);
|