From 9ba6136a5b2a1a9a231fa9d7b7c5ac98dcf6d03e Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Fri, 22 Nov 2024 13:19:11 +0800 Subject: [PATCH 1/2] fix disallowed-html-tag lint --- src/spring/azext_spring/_help.py | 2 +- src/spring/azext_spring/_params.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spring/azext_spring/_help.py b/src/spring/azext_spring/_help.py index f8a0e98189f..7e04a6e4ff8 100644 --- a/src/spring/azext_spring/_help.py +++ b/src/spring/azext_spring/_help.py @@ -382,7 +382,7 @@ helps['spring app deployment'] = """ type: group - short-summary: Commands to manage life cycle of deployments of an app in Azure Spring Apps. More operations on deployments can be done on app level with parameter --deployment. e.g. az spring app deploy --deployment + short-summary: Commands to manage life cycle of deployments of an app in Azure Spring Apps. More operations on deployments can be done on app level with parameter --deployment. e.g. `az spring app deploy --deployment ` """ helps['spring app deployment list'] = """ diff --git a/src/spring/azext_spring/_params.py b/src/spring/azext_spring/_params.py index b435e06360e..5a09059f7c8 100644 --- a/src/spring/azext_spring/_params.py +++ b/src/spring/azext_spring/_params.py @@ -60,7 +60,7 @@ validator=validate_env, help="Space-separated environment variables in 'key[=value]' format.", nargs='*') build_env_type = CLIArgumentType( validator=validate_build_env, help="Space-separated environment variables in 'key[=value]' format.", nargs='*') -service_name_type = CLIArgumentType(options_list=['--service', '-s'], help='The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.', configured_default='spring') +service_name_type = CLIArgumentType(options_list=['--service', '-s'], help='The name of Azure Spring Apps instance, you can configure the default service using `az configure --defaults spring=.`', configured_default='spring') app_name_type = CLIArgumentType(help='App name, you can configure the default app using az configure --defaults spring-cloud-app=.', validator=validate_app_name, configured_default='spring-app') sku_type = CLIArgumentType(arg_type=get_enum_type(['Basic', 'Standard', 'Enterprise', 'StandardGen2']), help='Name of SKU.') source_path_type = CLIArgumentType(nargs='?', const='.', @@ -642,7 +642,7 @@ def prepare_logs_argument(c): c.argument('scale_rule_metadata', nargs="+", options_list=['--scale-rule-metadata', '--srm'], help='Scale rule metadata. Format "key[=value]" and separated by space.') c.argument('scale_rule_auth', nargs="+", options_list=['--scale-rule-auth', '--sra'], - help='Scale rule auth parameters. Format "=" and separated by space.') + help='Scale rule auth parameters. Format `=` and separated by space.') with self.argument_context('spring app deployment') as c: c.argument('app', app_name_type, help='Name of app.', From fedface9e3bebd9e5982e31c8f556db85e5f27cb Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Tue, 26 Nov 2024 16:31:51 +0800 Subject: [PATCH 2/2] update summary Co-authored-by: AllyW --- src/spring/azext_spring/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spring/azext_spring/_params.py b/src/spring/azext_spring/_params.py index 5a09059f7c8..57467910ac8 100644 --- a/src/spring/azext_spring/_params.py +++ b/src/spring/azext_spring/_params.py @@ -60,7 +60,7 @@ validator=validate_env, help="Space-separated environment variables in 'key[=value]' format.", nargs='*') build_env_type = CLIArgumentType( validator=validate_build_env, help="Space-separated environment variables in 'key[=value]' format.", nargs='*') -service_name_type = CLIArgumentType(options_list=['--service', '-s'], help='The name of Azure Spring Apps instance, you can configure the default service using `az configure --defaults spring=.`', configured_default='spring') +service_name_type = CLIArgumentType(options_list=['--service', '-s'], help='The name of Azure Spring Apps instance, you can configure the default service using `az configure --defaults spring=`.', configured_default='spring') app_name_type = CLIArgumentType(help='App name, you can configure the default app using az configure --defaults spring-cloud-app=.', validator=validate_app_name, configured_default='spring-app') sku_type = CLIArgumentType(arg_type=get_enum_type(['Basic', 'Standard', 'Enterprise', 'StandardGen2']), help='Name of SKU.') source_path_type = CLIArgumentType(nargs='?', const='.',