-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
parameters.js
96 lines (96 loc) · 2.72 KB
/
parameters.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Define all available cli options.
export function generateCliParameters(paths) {
return {
'aws-profile': {
description: 'AWS profile name to associate credentials with',
required: true
},
'aws-role-arn': {
description: 'AWS role ARN to authenticate with',
awsConfigKey: 'gsts.role_arn'
},
'aws-session-duration': {
description: `AWS session duration in seconds (defaults to the value provided by the IDP, if set)`,
type: 'number',
awsConfigKey: 'duration_seconds'
},
'aws-region': {
description: 'AWS region to send requests to',
required: true,
awsConfigKey: 'region',
},
'cache-dir': {
description: 'Where to store cached data',
default: paths.cache,
awsConfigKey: 'gsts.cache_dir'
},
'clean': {
type: 'boolean',
config: false,
description: 'Start authorization from a clean session state',
awsConfigKey: 'gsts.clean'
},
'credentials-cache': {
type: 'boolean',
default: true,
hidden: true,
},
'force': {
type: 'boolean',
default: false,
description: 'Force re-authorization even with valid session',
awsConfigKey: 'gsts.force',
},
'headful': {
type: 'boolean',
config: false,
description: 'headful',
hidden: true
},
'idp-id': {
description: 'Identity Provider ID (IdP ID)',
required: true,
awsConfigKey: 'gsts.idp_id'
},
'no-credentials-cache': {
description: 'Disable default behaviour of storing credentials in --cache-dir',
type: 'boolean'
},
'output': {
alias: 'o',
description: `Output format`,
choices: ['json', 'none']
},
'playwright-engine': {
description: 'Set playwright browser engine',
choices: ['chromium', 'firefox', 'webkit'],
default: 'chromium',
awsConfigKey: 'gsts.playwright_engine'
},
'playwright-engine-executable-path': {
description: 'Set playwright executable path for browser engine',
awsConfigKey: 'gsts.playwright_engine_executable_path'
},
'playwright-engine-channel': {
description: 'Set playwright browser engine channel',
choices: ['chrome', 'chrome-beta', 'msedge-beta', 'msedge-dev'],
awsConfigKey: 'gsts.playwright_engine_channel'
},
'sp-id': {
description: 'Service Provider ID (SP ID)',
type: 'string',
required: true,
awsConfigKey: 'gsts.sp_id'
},
'username': {
description: 'Username to auto pre-fill during login',
awsConfigKey: 'gsts.username'
},
'verbose': {
description: 'Log verbose output',
awsConfigKey: 'gsts.verbose',
type: 'count',
alias: 'v'
}
};
}