-
Notifications
You must be signed in to change notification settings - Fork 0
/
flags.ts
62 lines (54 loc) · 1.34 KB
/
flags.ts
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
50
51
52
53
54
55
56
57
58
59
60
61
62
import { Flags } from '@oclif/core';
export const help = {
help: Flags.help({ char: 'h' }),
};
export const brokerApiUrl = {
'broker-api-url': Flags.string({
default: 'https://broker.io.nrs.gov.bc.ca/',
description: 'The broker api base url',
env: 'BROKER_API_URL',
}),
};
export const brokerToken = {
'broker-token': Flags.string({
required: false,
description: 'The broker JWT',
env: 'BROKER_TOKEN',
}),
};
export const secretShares = {
'secret-shares': Flags.integer({
description: 'The number of shares to split the master key into',
default: 1,
}),
};
export const secretThreshold = {
'secret-threshold': Flags.integer({
description: 'The number of shares required to reconstruct the master key',
default: 1,
}),
};
export const vaultAddr = {
'vault-addr': Flags.string({
default: 'http://127.0.0.1:8200',
description: 'The vault address',
env: 'VAULT_ADDR',
}),
};
export const vaultToken = {
'vault-token': Flags.string({
default: 'myroot',
description: 'The vault token',
env: 'VAULT_TOKEN',
}),
};
export const root = {
root: Flags.string({
multiple: true,
default: [],
description:
'The root to constrict the policy sync to. ' +
'Some roots can be further constricted such as -root=apps -root=cool-app-war ',
env: 'POLICY_ROOT',
}),
};