|
17 | 17 | var userOption = new Option<string>(
|
18 | 18 | name: "--user",
|
19 | 19 | description: ParameterDescriptions.User );
|
| 20 | +var passwordlessOption = new Option<bool?>( |
| 21 | + name: "--passwordless", |
| 22 | + description: ParameterDescriptions.Passwordless |
| 23 | +); |
20 | 24 |
|
21 | 25 | // allow no-sandbox argument for DSSO and future experimental features
|
22 | 26 | var experimentalOption = new Option<bool>(
|
|
28 | 32 | orgOption,
|
29 | 33 | userOption,
|
30 | 34 | experimentalOption,
|
| 35 | + passwordlessOption |
31 | 36 | };
|
32 | 37 | loginCommand.SetHandler( ( InvocationContext context ) => {
|
33 | 38 | var consoleWriter = new ConsoleWriter();
|
|
42 | 47 | return handler.HandleAsync(
|
43 | 48 | org: context.ParseResult.GetValueForOption( orgOption ),
|
44 | 49 | user: context.ParseResult.GetValueForOption( userOption ),
|
45 |
| - experimental: context.ParseResult.GetValueForOption( experimentalOption ) |
| 50 | + experimental: context.ParseResult.GetValueForOption( experimentalOption ), |
| 51 | + passwordless: context.ParseResult.GetValueForOption( passwordlessOption ) |
46 | 52 | );
|
47 | 53 | } );
|
48 | 54 |
|
|
71 | 77 | userOption,
|
72 | 78 | durationOption,
|
73 | 79 | nonInteractiveOption,
|
| 80 | + passwordlessOption, |
74 | 81 | };
|
75 | 82 |
|
76 | 83 | configureCommand.SetHandler( ( InvocationContext context ) => {
|
|
81 | 88 | org: context.ParseResult.GetValueForOption( orgOption ),
|
82 | 89 | user: context.ParseResult.GetValueForOption( userOption ),
|
83 | 90 | duration: context.ParseResult.GetValueForOption( durationOption ),
|
84 |
| - nonInteractive: context.ParseResult.GetValueForOption( nonInteractiveOption ) |
| 91 | + nonInteractive: context.ParseResult.GetValueForOption( nonInteractiveOption ), |
| 92 | + passwordless: context.ParseResult.GetValueForOption( passwordlessOption ) |
85 | 93 | );
|
86 | 94 | return Task.CompletedTask;
|
87 | 95 | } );
|
|
127 | 135 | nonInteractiveOption,
|
128 | 136 | cacheAwsCredentialsOption,
|
129 | 137 | experimentalOption,
|
| 138 | + passwordlessOption, |
130 | 139 | };
|
131 | 140 |
|
132 | 141 | printCommand.SetHandler( ( InvocationContext context ) => {
|
|
156 | 165 | nonInteractive: context.ParseResult.GetValueForOption( nonInteractiveOption ),
|
157 | 166 | format: context.ParseResult.GetValueForOption( formatOption ),
|
158 | 167 | cacheAwsCredentials: context.ParseResult.GetValueForOption( cacheAwsCredentialsOption ),
|
159 |
| - experimental: context.ParseResult.GetValueForOption( experimentalOption ) |
| 168 | + experimental: context.ParseResult.GetValueForOption( experimentalOption ), |
| 169 | + passwordless: context.ParseResult.GetValueForOption( passwordlessOption ) |
160 | 170 | );
|
161 | 171 | } );
|
162 | 172 |
|
|
182 | 192 | nonInteractiveOption,
|
183 | 193 | cacheAwsCredentialsOption,
|
184 | 194 | useCredentialProcessOption,
|
185 |
| - experimentalOption |
| 195 | + experimentalOption, |
| 196 | + passwordlessOption, |
186 | 197 | };
|
187 | 198 |
|
188 | 199 | writeCommand.SetHandler( ( InvocationContext context ) => {
|
|
218 | 229 | profile: context.ParseResult.GetValueForOption( profileOption ),
|
219 | 230 | cacheAwsCredentials: context.ParseResult.GetValueForOption( cacheAwsCredentialsOption ),
|
220 | 231 | useCredentialProcess: context.ParseResult.GetValueForOption( useCredentialProcessOption ),
|
221 |
| - experimental: context.ParseResult.GetValueForOption( experimentalOption ) |
| 232 | + experimental: context.ParseResult.GetValueForOption( experimentalOption ), |
| 233 | + passwordless: context.ParseResult.GetValueForOption( passwordlessOption ) |
222 | 234 | );
|
223 | 235 | } );
|
224 | 236 |
|
|
0 commit comments