3535 opt_project ,
3636 opt_refresh ,
3737 opt_scope ,
38- opt_show_qr_code ,
38+ opt_qr_code ,
3939 opt_sops ,
4040 opt_username ,
4141 opt_yes_no ,
@@ -66,19 +66,19 @@ def cmd_oauth(ctx):
6666
6767
6868@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 ()
7272@opt_audience ()
73- @opt_organization
74- @opt_project
73+ @opt_organization ()
74+ @opt_project ()
7575@opt_username ()
7676@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 ()
8282@click .pass_context
8383@recast_exceptions_to_click (AuthException , ValueError )
8484def cmd_oauth_login (
@@ -132,7 +132,7 @@ def cmd_oauth_login(
132132
133133
134134@cmd_oauth .command ("refresh" )
135- @opt_scope
135+ @opt_scope ()
136136@click .pass_context
137137@recast_exceptions_to_click (AuthException , FileNotFoundError )
138138def cmd_oauth_refresh (ctx , scope ):
@@ -185,7 +185,7 @@ def cmd_oauth_discovery(ctx):
185185
186186@cmd_oauth .command ("validate-access-token" )
187187@click .pass_context
188- @opt_human_readable
188+ @opt_human_readable ()
189189@recast_exceptions_to_click (AuthException , FileNotFoundError )
190190def cmd_oauth_validate_access_token_remote (ctx , human_readable ):
191191 """
@@ -207,8 +207,8 @@ def cmd_oauth_validate_access_token_remote(ctx, human_readable):
207207@cmd_oauth .command ("validate-access-token-local" )
208208@click .pass_context
209209@opt_audience ()
210- @opt_scope
211- @opt_human_readable
210+ @opt_scope ()
211+ @opt_human_readable ()
212212@recast_exceptions_to_click (AuthException , FileNotFoundError )
213213def cmd_oauth_validate_access_token_local (ctx , audience , scope , human_readable ):
214214 """
@@ -239,7 +239,7 @@ def cmd_oauth_validate_access_token_local(ctx, audience, scope, human_readable):
239239
240240@cmd_oauth .command ("validate-id-token" )
241241@click .pass_context
242- @opt_human_readable
242+ @opt_human_readable ()
243243@recast_exceptions_to_click (AuthException , FileNotFoundError )
244244def cmd_oauth_validate_id_token_remote (ctx , human_readable ):
245245 """
@@ -260,7 +260,7 @@ def cmd_oauth_validate_id_token_remote(ctx, human_readable):
260260
261261@cmd_oauth .command ("validate-id-token-local" )
262262@click .pass_context
263- @opt_human_readable
263+ @opt_human_readable ()
264264@recast_exceptions_to_click (AuthException , FileNotFoundError )
265265def cmd_oauth_validate_id_token_local (ctx , human_readable ):
266266 """
@@ -280,7 +280,7 @@ def cmd_oauth_validate_id_token_local(ctx, human_readable):
280280
281281@cmd_oauth .command ("validate-refresh-token" )
282282@click .pass_context
283- @opt_human_readable
283+ @opt_human_readable ()
284284@recast_exceptions_to_click (AuthException , FileNotFoundError )
285285def cmd_oauth_validate_refresh_token_remote (ctx , human_readable ):
286286 """
@@ -357,7 +357,7 @@ def cmd_oauth_userinfo(ctx):
357357
358358@cmd_oauth .command ("print-access-token" )
359359@click .pass_context
360- @opt_refresh
360+ @opt_refresh ()
361361@recast_exceptions_to_click (AuthException , FileNotFoundError )
362362def cmd_oauth_print_access_token (ctx , refresh ):
363363 """
@@ -390,7 +390,7 @@ def cmd_oauth_print_access_token(ctx, refresh):
390390
391391@cmd_oauth .command ("decode-access-token" )
392392@click .pass_context
393- @opt_human_readable
393+ @opt_human_readable ()
394394@recast_exceptions_to_click (AuthException , FileNotFoundError )
395395def cmd_oauth_decode_jwt_access_token (ctx , human_readable ):
396396 """
@@ -406,7 +406,7 @@ def cmd_oauth_decode_jwt_access_token(ctx, human_readable):
406406
407407@cmd_oauth .command ("decode-id-token" )
408408@click .pass_context
409- @opt_human_readable
409+ @opt_human_readable ()
410410@recast_exceptions_to_click (AuthException , FileNotFoundError )
411411def cmd_oauth_decode_jwt_id_token (ctx , human_readable ):
412412 """
@@ -420,7 +420,7 @@ def cmd_oauth_decode_jwt_id_token(ctx, human_readable):
420420
421421@cmd_oauth .command ("decode-refresh-token" )
422422@click .pass_context
423- @opt_human_readable
423+ @opt_human_readable ()
424424@recast_exceptions_to_click (AuthException , FileNotFoundError )
425425def cmd_oauth_decode_jwt_refresh_token (ctx , human_readable ):
426426 """
0 commit comments