forked from datamadic/openfin-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.js
More file actions
executable file
·41 lines (36 loc) · 1.56 KB
/
cli.js
File metadata and controls
executable file
·41 lines (36 loc) · 1.56 KB
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
36
37
38
39
40
41
#!/usr/bin/env node
'use strict';
var meow = require('meow'),
openfinCli = require('./');
const options = {
flags: {
name: { alias: 'n', type: 'string' },
url: { alias: 'u', type: 'string' },
config: { alias: 'c', type: 'string' },
launch: { alias: 'l', type: 'boolean' }
}
};
var cli = meow({
help: [
'OpenFin cli is capable of launching Application, and creating OpenFin config files.',
'Options:',
'-c --config <config file>',
'-n --name <application name to be used in the config>',
'-u --url <application url>',
'-l --launch launch this configuration',
'-p --devtools-port devtools port number',
'-v --runtime-version runtime version',
'-i --installer a url to an OpenFin config file ',
'-h --hyperlink return a url to stdout pointing to the OpenFin installer webservice',
'-d --destination write the results of -i to disk using this path',
'--file-name <application name to be used in the config>',
'--no-ext <If set “true”, the file is extention-less>',
'--rvm-config <URL that points to the RVM config. Must be a full URL.>',
'--support-email <The email address to display in the installer when an error occurs. Default value = "support@openfin.co">',
'--dnl <Installs an application without launching it. Set value to true [dnl=true]>',
'--version current version of the tool',
'Example',
' openfin -l -c myconfig.json -u http://www.openfin.co'
].join('\n')
});
openfinCli(cli);