Skip to content

Commit 288136b

Browse files
AtharvaCopilot
andcommitted
fix: linter errors - add group help, fix example, add short aliases
- Add help for 'cluster' and 'hierarchy' command groups - Fix hierarchy create SG example to include -g - Add -v alias for --solution-template-version-id - Add --version alias for --solution-template-version Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3bec477 commit 288136b

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

  • src/workload-orchestration/azext_workload_orchestration

src/workload-orchestration/azext_workload_orchestration/_help.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,15 @@
9393
- name: Create RG hierarchy with shorthand
9494
text: az workload-orchestration hierarchy create -g my-rg --configuration-location eastus2euap --hierarchy-spec "name=Mehoopany level=factory"
9595
- name: Create ServiceGroup hierarchy from YAML
96-
text: az workload-orchestration hierarchy create --configuration-location eastus2euap --hierarchy-spec "@sg-hierarchy.yaml"
96+
text: az workload-orchestration hierarchy create -g my-rg --configuration-location eastus2euap --hierarchy-spec "@sg-hierarchy.yaml"
97+
"""
98+
99+
helps['workload-orchestration cluster'] = """
100+
type: group
101+
short-summary: Commands for cluster preparation for workload orchestration.
102+
"""
103+
104+
helps['workload-orchestration hierarchy'] = """
105+
type: group
106+
short-summary: Commands for managing workload orchestration hierarchies.
97107
"""

src/workload-orchestration/azext_workload_orchestration/aaz/latest/workload_orchestration/target/_install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
7777

7878
# New flow: full deploy chain
7979
_args_schema.solution_template_version_id = AAZStrArg(
80-
options=["--solution-template-version-id"],
80+
options=["--solution-template-version-id", "-v"],
8181
arg_group="Deploy",
8282
help="Full ARM ID of the solution template version. Triggers full deploy chain.",
8383
)
@@ -87,7 +87,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
8787
help="Name of the solution template. Use with --solution-template-version.",
8888
)
8989
_args_schema.solution_template_version = AAZStrArg(
90-
options=["--solution-template-version"],
90+
options=["--solution-template-version", "--version"],
9191
arg_group="Deploy",
9292
help="Version of the solution template (e.g., 1.0.0).",
9393
)

0 commit comments

Comments
 (0)