35
35
opt_project ,
36
36
opt_refresh ,
37
37
opt_scope ,
38
- opt_show_qr_code ,
38
+ opt_qr_code ,
39
39
opt_sops ,
40
40
opt_username ,
41
41
opt_yes_no ,
@@ -66,19 +66,19 @@ def cmd_oauth(ctx):
66
66
67
67
68
68
@cmd_oauth .command ("login" )
69
- @opt_open_browser
70
- @opt_show_qr_code
71
- @opt_scope
69
+ @opt_open_browser ()
70
+ @opt_qr_code ()
71
+ @opt_scope ()
72
72
@opt_audience ()
73
- @opt_organization
74
- @opt_project
73
+ @opt_organization ()
74
+ @opt_project ()
75
75
@opt_username ()
76
76
@opt_password ()
77
- @opt_client_id
78
- @opt_client_secret
79
- @opt_sops
80
- @opt_yes_no
81
- @opt_extra
77
+ @opt_client_id ()
78
+ @opt_client_secret ()
79
+ @opt_sops ()
80
+ @opt_yes_no ()
81
+ @opt_extra ()
82
82
@click .pass_context
83
83
@recast_exceptions_to_click (AuthException , ValueError )
84
84
def cmd_oauth_login (
@@ -132,7 +132,7 @@ def cmd_oauth_login(
132
132
133
133
134
134
@cmd_oauth .command ("refresh" )
135
- @opt_scope
135
+ @opt_scope ()
136
136
@click .pass_context
137
137
@recast_exceptions_to_click (AuthException , FileNotFoundError )
138
138
def cmd_oauth_refresh (ctx , scope ):
@@ -185,7 +185,7 @@ def cmd_oauth_discovery(ctx):
185
185
186
186
@cmd_oauth .command ("validate-access-token" )
187
187
@click .pass_context
188
- @opt_human_readable
188
+ @opt_human_readable ()
189
189
@recast_exceptions_to_click (AuthException , FileNotFoundError )
190
190
def cmd_oauth_validate_access_token_remote (ctx , human_readable ):
191
191
"""
@@ -207,8 +207,8 @@ def cmd_oauth_validate_access_token_remote(ctx, human_readable):
207
207
@cmd_oauth .command ("validate-access-token-local" )
208
208
@click .pass_context
209
209
@opt_audience ()
210
- @opt_scope
211
- @opt_human_readable
210
+ @opt_scope ()
211
+ @opt_human_readable ()
212
212
@recast_exceptions_to_click (AuthException , FileNotFoundError )
213
213
def cmd_oauth_validate_access_token_local (ctx , audience , scope , human_readable ):
214
214
"""
@@ -239,7 +239,7 @@ def cmd_oauth_validate_access_token_local(ctx, audience, scope, human_readable):
239
239
240
240
@cmd_oauth .command ("validate-id-token" )
241
241
@click .pass_context
242
- @opt_human_readable
242
+ @opt_human_readable ()
243
243
@recast_exceptions_to_click (AuthException , FileNotFoundError )
244
244
def cmd_oauth_validate_id_token_remote (ctx , human_readable ):
245
245
"""
@@ -260,7 +260,7 @@ def cmd_oauth_validate_id_token_remote(ctx, human_readable):
260
260
261
261
@cmd_oauth .command ("validate-id-token-local" )
262
262
@click .pass_context
263
- @opt_human_readable
263
+ @opt_human_readable ()
264
264
@recast_exceptions_to_click (AuthException , FileNotFoundError )
265
265
def cmd_oauth_validate_id_token_local (ctx , human_readable ):
266
266
"""
@@ -280,7 +280,7 @@ def cmd_oauth_validate_id_token_local(ctx, human_readable):
280
280
281
281
@cmd_oauth .command ("validate-refresh-token" )
282
282
@click .pass_context
283
- @opt_human_readable
283
+ @opt_human_readable ()
284
284
@recast_exceptions_to_click (AuthException , FileNotFoundError )
285
285
def cmd_oauth_validate_refresh_token_remote (ctx , human_readable ):
286
286
"""
@@ -357,7 +357,7 @@ def cmd_oauth_userinfo(ctx):
357
357
358
358
@cmd_oauth .command ("print-access-token" )
359
359
@click .pass_context
360
- @opt_refresh
360
+ @opt_refresh ()
361
361
@recast_exceptions_to_click (AuthException , FileNotFoundError )
362
362
def cmd_oauth_print_access_token (ctx , refresh ):
363
363
"""
@@ -390,7 +390,7 @@ def cmd_oauth_print_access_token(ctx, refresh):
390
390
391
391
@cmd_oauth .command ("decode-access-token" )
392
392
@click .pass_context
393
- @opt_human_readable
393
+ @opt_human_readable ()
394
394
@recast_exceptions_to_click (AuthException , FileNotFoundError )
395
395
def cmd_oauth_decode_jwt_access_token (ctx , human_readable ):
396
396
"""
@@ -406,7 +406,7 @@ def cmd_oauth_decode_jwt_access_token(ctx, human_readable):
406
406
407
407
@cmd_oauth .command ("decode-id-token" )
408
408
@click .pass_context
409
- @opt_human_readable
409
+ @opt_human_readable ()
410
410
@recast_exceptions_to_click (AuthException , FileNotFoundError )
411
411
def cmd_oauth_decode_jwt_id_token (ctx , human_readable ):
412
412
"""
@@ -420,7 +420,7 @@ def cmd_oauth_decode_jwt_id_token(ctx, human_readable):
420
420
421
421
@cmd_oauth .command ("decode-refresh-token" )
422
422
@click .pass_context
423
- @opt_human_readable
423
+ @opt_human_readable ()
424
424
@recast_exceptions_to_click (AuthException , FileNotFoundError )
425
425
def cmd_oauth_decode_jwt_refresh_token (ctx , human_readable ):
426
426
"""
0 commit comments