Skip to content

Commit d78f3cc

Browse files
author
Danny Tundwe (from Dev Box)
committed
Add help example for swap-default command
- Fixes linter error: missing_command_example - All linter checks now pass
1 parent 9c955d9 commit d78f3cc

File tree

1 file changed

+15
-0
lines changed
  • src/azure-cli/azure/cli/command_modules/edge_action

1 file changed

+15
-0
lines changed

src/azure-cli/azure/cli/command_modules/edge_action/_help.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,21 @@
122122
--file-path ./my-code.zip
123123
"""
124124

125+
helps['edge-action version swap-default'] = """
126+
type: command
127+
short-summary: Swap the default version of an Edge Action
128+
long-summary: |
129+
Swap the default version of an Edge Action to a different version.
130+
This operation changes which version is used by default for the Edge Action.
131+
examples:
132+
- name: Swap default version to a new version
133+
text: |
134+
az edge-action version swap-default \\
135+
--resource-group MyResourceGroup \\
136+
--edge-action-name MyEdgeAction \\
137+
--version v2
138+
"""
139+
125140
helps['edge-action execution-filter'] = """
126141
type: group
127142
short-summary: Manage Edge Action execution filters

0 commit comments

Comments
 (0)