|
13 | 13 | validate_vnet, validate_vnet_required_parameters, validate_node_resource_group, |
14 | 14 | validate_tracing_parameters_asc_create, validate_tracing_parameters_asc_update, |
15 | 15 | validate_app_insights_parameters, validate_instance_count, validate_java_agent_parameters, |
16 | | - validate_ingress_timeout, validate_jar, validate_ingress_send_timeout, validate_ingress_session_max_age) |
| 16 | + validate_ingress_timeout, validate_remote_debugging_port, validate_jar, validate_ingress_send_timeout, |
| 17 | + validate_ingress_session_max_age) |
17 | 18 | from ._validators_enterprise import (only_support_enterprise, validate_builder_resource, validate_builder_create, |
18 | 19 | validate_builder_update, validate_build_pool_size, |
19 | 20 | validate_git_uri, validate_acs_patterns, validate_config_file_patterns, |
@@ -287,6 +288,18 @@ def load_arguments(self, _): |
287 | 288 | c.argument('deployment', options_list=[ |
288 | 289 | '--deployment', '-d'], help='Name of an existing deployment of the app. Default to the production deployment if not specified.', validator=fulfill_deployment_param) |
289 | 290 |
|
| 291 | + for scope in ['spring app disable-remote-debugging', 'spring app get-remote-debugging-config']: |
| 292 | + with self.argument_context(scope) as c: |
| 293 | + c.argument('deployment', options_list=[ |
| 294 | + '--deployment', '-d'], help='Name of an existing deployment of the app. Default to the production deployment if not specified.', validator=fulfill_deployment_param) |
| 295 | + |
| 296 | + with self.argument_context('spring app enable-remote-debugging') as c: |
| 297 | + c.argument('deployment', options_list=[ |
| 298 | + '--deployment', '-d'], help='Name of an existing deployment of the app. Default to the production deployment if not specified.', validator=fulfill_deployment_param) |
| 299 | + c.argument('remote_debugging_port', options_list=['--port', '-p'], type=int, default=5005, |
| 300 | + help='Remote debugging port, the value should be from 1024 to 65536, default value is 5005', |
| 301 | + validator=validate_remote_debugging_port) |
| 302 | + |
290 | 303 | with self.argument_context('spring app unset-deployment') as c: |
291 | 304 | c.argument('name', name_type, help='Name of app.', validator=active_deployment_exist) |
292 | 305 |
|
|
0 commit comments