-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.js
49 lines (46 loc) · 1.27 KB
/
index.js
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
42
43
44
45
46
47
48
49
const argv = require('yargs')
.commandDir('src/commands')
.option('app', {
alias: 'a',
describe: 'App Id for Desktop, App GUID for Server.'
})
.option('endpoint', {
alias: 'e',
describe: 'Websocket endpoint used when connecting to Qlik Desktop/Server.',
default: 'ws://localhost:9076/'
})
.option('useCache', {
describe: "Use standard engine caching.",
default: false
})
.option('trace', {
describe: 'Display socket trace to stdout.',
default: false
})
.option('user', {
alias: 'u',
describe: 'User name used when connecting to Qlik Server.',
default: process.env.userName
})
.option('domain', {
alias: 'd',
describe: 'User domain used when connecting to Qlik Server.',
default: process.env.userDomain
})
.option('certPath', {
alias: 'c',
describe: 'Path to certificates used when connecting to Qlik Server. Must include these files: client.pem, client_key.pem, and root.pem'
})
.option('repeat', {
describe: 'Number of times to peform each test',
default: 1
})
.option('testSyntax', {
alias: 'ts',
describe: 'For extract command, syntax to use for generated tests. "simple" for simplified syntax, "full" for full qHyperCubeDef',
default: "simple"
})
.demandCommand()
.boolean('useCache')
.boolean('trace')
.argv;