Skip to content

Commit d03f01b

Browse files
authored
[Az CLI Min Version Updated] Mark Preview using new Knack feature (#685)
* Mark Preview using new Knack feature * Setting minimum version to 2.0.69 which fixed a issue with git bash and preview kwarg
1 parent a4fefac commit d03f01b

18 files changed

+125
-125
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Azure DevOps Extension for Azure CLI adds Pipelines, Boards, Repos, Artifact
88
99
## Quick start
1010

11-
1. [Install the Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli). You must have at least `v2.0.49`, which you can verify with `az --version` command.
11+
1. [Install the Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli). You must have at least `v2.0.69`, which you can verify with `az --version` command.
1212

1313
1. Add the Azure DevOps Extension `az extension add --name azure-devops`
1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"azext.minCliCoreVersion": "2.0.49"
2+
"azext.minCliCoreVersion": "2.0.69"
33
}

azure-devops/azext_devops/dev/boards/_help.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ def load_boards_help():
2727

2828
helps['boards iteration'] = """
2929
type: group
30-
short-summary: (PREVIEW) Manage iterations.
30+
short-summary: Manage iterations.
3131
long-summary:
3232
"""
3333

3434
helps['boards iteration team'] = """
3535
type: group
36-
short-summary: (PREVIEW) Manage iterations for a team.
36+
short-summary: Manage iterations for a team.
3737
long-summary:
3838
"""
3939

4040
helps['boards iteration project'] = """
4141
type: group
42-
short-summary: (PREVIEW) Manage iterations for a project.
42+
short-summary: Manage iterations for a project.
4343
long-summary:
4444
"""
4545

@@ -50,13 +50,13 @@ def load_boards_help():
5050

5151
helps['boards area'] = """
5252
type: group
53-
short-summary: (PREVIEW) Manage area paths.
53+
short-summary: Manage area paths.
5454
long-summary:
5555
"""
5656

5757
helps['boards area project'] = """
5858
type: group
59-
short-summary: (PREVIEW) Manage areas for a project.
59+
short-summary: Manage areas for a project.
6060
long-summary:
6161
"""
6262

@@ -67,7 +67,7 @@ def load_boards_help():
6767

6868
helps['boards area team'] = """
6969
type: group
70-
short-summary: (PREVIEW) Manage areas for a team.
70+
short-summary: Manage areas for a team.
7171
long-summary:
7272
"""
7373

azure-devops/azext_devops/dev/boards/area.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
def get_project_areas(depth=1, path=None, organization=None, project=None, detect=None):
20-
"""(PREVIEW) List areas for a project.
20+
"""List areas for a project.
2121
:param depth: Depth of child nodes to be fetched. Example: --depth 3
2222
:type depth: int
2323
"""
@@ -34,7 +34,7 @@ def get_project_areas(depth=1, path=None, organization=None, project=None, detec
3434

3535

3636
def delete_project_area(path, organization=None, project=None, detect=None):
37-
"""(PREVIEW) Delete area.
37+
"""Delete area.
3838
"""
3939
organization, project = resolve_instance_and_project(detect=detect,
4040
organization=organization,
@@ -48,7 +48,7 @@ def delete_project_area(path, organization=None, project=None, detect=None):
4848

4949

5050
def create_project_area(name, path=None, organization=None, project=None, detect=None):
51-
"""(PREVIEW) Create area.
51+
"""Create area.
5252
:param name: Name of the area.
5353
:type: str
5454
"""
@@ -68,7 +68,7 @@ def create_project_area(name, path=None, organization=None, project=None, detect
6868

6969

7070
def get_project_area(id, organization=None, project=None, detect=None): # pylint: disable=redefined-builtin
71-
"""(PREVIEW) Show area details for a project.
71+
"""Show area details for a project.
7272
:param id: Area ID.
7373
:type id: int
7474
"""
@@ -83,7 +83,7 @@ def get_project_area(id, organization=None, project=None, detect=None): # pylin
8383

8484

8585
def update_project_area(path, name=None, child_id=None, organization=None, project=None, detect=None):
86-
"""(PREVIEW) Update area.
86+
"""Update area.
8787
:param name: New name of the area.
8888
:type: str
8989
:param child_id: Move an existing area and add as child node for this area.
@@ -116,7 +116,7 @@ def update_project_area(path, name=None, child_id=None, organization=None, proje
116116

117117

118118
def get_team_areas(team, organization=None, project=None, detect=None):
119-
"""(PREVIEW) List areas for a team.
119+
"""List areas for a team.
120120
"""
121121
organization, project = resolve_instance_and_project(detect=detect,
122122
organization=organization,
@@ -129,7 +129,7 @@ def get_team_areas(team, organization=None, project=None, detect=None):
129129

130130
def add_team_area(path, team, set_as_default=False, include_sub_areas=None,
131131
organization=None, project=None, detect=None):
132-
"""(PREVIEW) Add area to a team.
132+
"""Add area to a team.
133133
:param set_as_default: Set this area path as default area for this team. Default: False
134134
:type set_as_default: bool
135135
"""
@@ -157,7 +157,7 @@ def add_team_area(path, team, set_as_default=False, include_sub_areas=None,
157157

158158

159159
def remove_team_area(path, team, organization=None, project=None, detect=None):
160-
"""(PREVIEW) Remove area from a team.
160+
"""Remove area from a team.
161161
"""
162162
organization, project = resolve_instance_and_project(detect=detect,
163163
organization=organization,
@@ -189,7 +189,7 @@ def remove_team_area(path, team, organization=None, project=None, detect=None):
189189

190190
def update_team_area(path, team, include_sub_areas=None, set_as_default=False,
191191
organization=None, project=None, detect=None):
192-
"""(PREVIEW) Update team area.
192+
"""Update team area.
193193
:param set_as_default: Set as default team area path. Default: False
194194
:type set_as_default: bool
195195
"""

azure-devops/azext_devops/dev/boards/commands.py

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -62,52 +62,50 @@ def load_work_commands(self, _):
6262
confirmation='Are you sure you want to remove this relation(s)?')
6363
g.command('relation show', 'show_work_item', table_transformer=transform_work_item_relations)
6464

65-
with self.command_group('boards iteration team', command_type=workProjectAndTeamIterationOps) as g:
65+
with self.command_group('boards iteration', command_type=workProjectAndTeamIterationOps, is_preview=True) as g:
6666
# team iteration commands
67-
g.command('list', 'get_team_iterations', table_transformer=transform_work_item_team_iterations_table_output)
68-
g.command('list-work-items', 'list_iteration_work_items',
67+
g.command('team list', 'get_team_iterations',
68+
table_transformer=transform_work_item_team_iterations_table_output)
69+
g.command('team list-work-items', 'list_iteration_work_items',
6970
table_transformer=transform_work_item_team_iteration_work_items)
70-
g.command('set-default-iteration', 'set_default_iteration',
71+
g.command('team set-default-iteration', 'set_default_iteration',
7172
table_transformer=transform_work_item_team_default_iteration_table_output)
72-
g.command('set-backlog-iteration', 'set_backlog_iteration',
73+
g.command('team set-backlog-iteration', 'set_backlog_iteration',
7374
table_transformer=transform_work_item_team_backlog_iteration_table_output)
74-
g.command('show-default-iteration', 'show_default_iteration',
75+
g.command('team show-default-iteration', 'show_default_iteration',
7576
table_transformer=transform_work_item_team_default_iteration_table_output)
76-
g.command('show-backlog-iteration', 'show_backlog_iteration',
77+
g.command('team show-backlog-iteration', 'show_backlog_iteration',
7778
table_transformer=transform_work_item_team_backlog_iteration_table_output)
78-
g.command('remove', 'delete_team_iteration', table_transformer=transform_work_item_team_iteration_table_output)
79-
g.command('add', 'post_team_iteration', table_transformer=transform_work_item_team_iteration_table_output)
80-
81-
with self.command_group('boards iteration project', command_type=workProjectAndTeamIterationOps) as g:
79+
g.command('team remove', 'delete_team_iteration',
80+
table_transformer=transform_work_item_team_iteration_table_output)
81+
g.command('team add', 'post_team_iteration', table_transformer=transform_work_item_team_iteration_table_output)
8282
# team iteration commands
83-
g.command('list', 'get_project_iterations',
83+
g.command('project list', 'get_project_iterations',
8484
table_transformer=transform_work_item_project_classification_nodes_table_output)
85-
g.command('update', 'update_project_iteration',
85+
g.command('project update', 'update_project_iteration',
8686
table_transformer=transform_work_item_project_classification_nodes_table_output)
87-
g.command('delete', 'delete_project_iteration',
87+
g.command('project delete', 'delete_project_iteration',
8888
confirmation='Are you sure you want to delete this iteration?')
89-
g.command('show', 'get_project_iteration',
89+
g.command('project show', 'get_project_iteration',
9090
table_transformer=transform_work_item_project_classification_node_table_output)
91-
g.command('create', 'create_project_iteration',
91+
g.command('project create', 'create_project_iteration',
9292
table_transformer=transform_work_item_project_classification_nodes_table_output)
9393

94-
with self.command_group('boards area project', command_type=workProjectAndTeamAreaOps) as g:
94+
with self.command_group('boards area', command_type=workProjectAndTeamAreaOps, is_preview=True) as g:
9595
# team iteration commands
96-
g.command('list', 'get_project_areas',
96+
g.command('project list', 'get_project_areas',
9797
table_transformer=transform_work_item_project_classification_nodes_table_output)
98-
g.command('delete', 'delete_project_area',
98+
g.command('project delete', 'delete_project_area',
9999
confirmation='Are you sure you want to delete this area?')
100-
g.command('create', 'create_project_area',
100+
g.command('project create', 'create_project_area',
101101
table_transformer=transform_work_item_project_classification_nodes_table_output)
102-
g.command('update', 'update_project_area',
102+
g.command('project update', 'update_project_area',
103103
table_transformer=transform_work_item_project_classification_nodes_table_output)
104-
g.command('show', 'get_project_area',
104+
g.command('project show', 'get_project_area',
105105
table_transformer=transform_work_item_project_classification_node_table_output)
106-
107-
with self.command_group('boards area team', command_type=workProjectAndTeamAreaOps) as g:
108106
# team iteration commands
109-
g.command('list', 'get_team_areas', table_transformer=transform_work_item_team_areas_table_output)
110-
g.command('add', 'add_team_area', table_transformer=transform_work_item_team_areas_table_output)
111-
g.command('remove', 'remove_team_area', table_transformer=transform_work_item_team_areas_table_output)
112-
g.command('update', 'update_team_area',
107+
g.command('team list', 'get_team_areas', table_transformer=transform_work_item_team_areas_table_output)
108+
g.command('team add', 'add_team_area', table_transformer=transform_work_item_team_areas_table_output)
109+
g.command('team remove', 'remove_team_area', table_transformer=transform_work_item_team_areas_table_output)
110+
g.command('team update', 'update_team_area',
113111
table_transformer=transform_work_item_team_areas_table_output)

azure-devops/azext_devops/dev/boards/iteration.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
def get_project_iterations(depth=1, path=None, organization=None, project=None, detect=None):
26-
"""(PREVIEW) List iterations for a project.
26+
"""List iterations for a project.
2727
:param depth: Depth of child nodes to be fetched. Example: --depth 3.
2828
:type depth: int
2929
"""
@@ -41,7 +41,7 @@ def get_project_iterations(depth=1, path=None, organization=None, project=None,
4141

4242
def update_project_iteration(path, child_id=None, name=None, start_date=None,
4343
finish_date=None, organization=None, project=None, detect=None):
44-
"""(PREVIEW) Update project iteration.
44+
"""Update project iteration.
4545
:param name: New name of the iteration.
4646
:type: str
4747
:param child_id: Move an existing iteration and add as child node for this iteration.
@@ -86,7 +86,7 @@ def update_project_iteration(path, child_id=None, name=None, start_date=None,
8686

8787

8888
def delete_project_iteration(path, organization=None, project=None, detect=None):
89-
"""(PREVIEW) Delete iteration.
89+
"""Delete iteration.
9090
"""
9191
organization, project = resolve_instance_and_project(detect=detect,
9292
organization=organization,
@@ -100,7 +100,7 @@ def delete_project_iteration(path, organization=None, project=None, detect=None)
100100

101101

102102
def get_project_iteration(id, organization=None, project=None, detect=None): # pylint: disable=redefined-builtin
103-
"""(PREVIEW) Show iteration details for a project.
103+
"""Show iteration details for a project.
104104
:param id: Iteration ID.
105105
:type id: int
106106
"""
@@ -116,7 +116,7 @@ def get_project_iteration(id, organization=None, project=None, detect=None): #
116116

117117
def create_project_iteration(name, path=None, start_date=None, finish_date=None,
118118
organization=None, project=None, detect=None):
119-
"""(PREVIEW) Create iteration.
119+
"""Create iteration.
120120
:param name: Name of the iteration.
121121
:type: str
122122
"""
@@ -150,7 +150,7 @@ def create_project_iteration(name, path=None, start_date=None, finish_date=None,
150150

151151

152152
def get_team_iterations(team, timeframe=None, organization=None, project=None, detect=None):
153-
"""(PREVIEW) List iterations for a team.
153+
"""List iterations for a team.
154154
:param team: The name or id of the team.
155155
:type team: str
156156
:param timeframe: A filter for which iterations are returned based on relative time.
@@ -168,7 +168,7 @@ def get_team_iterations(team, timeframe=None, organization=None, project=None, d
168168

169169

170170
def delete_team_iteration(id, team, organization=None, project=None, detect=None): # pylint: disable=redefined-builtin
171-
"""(PREVIEW) Remove iteration from a team.
171+
"""Remove iteration from a team.
172172
:param id: Identifier of the iteration.
173173
:type: str
174174
:param team: Name or ID of the team.
@@ -185,7 +185,7 @@ def delete_team_iteration(id, team, organization=None, project=None, detect=None
185185

186186

187187
def post_team_iteration(id, team, organization=None, project=None, detect=None): # pylint: disable=redefined-builtin
188-
"""(PREVIEW) Add iteration to a team.
188+
"""Add iteration to a team.
189189
:param id: Identifier of the iteration.
190190
:type: str
191191
:param team: Name or ID of the team.
@@ -203,7 +203,7 @@ def post_team_iteration(id, team, organization=None, project=None, detect=None):
203203

204204

205205
def list_iteration_work_items(id, team, organization=None, project=None, detect=None): # pylint: disable=redefined-builtin
206-
"""(PREVIEW) List work-items for an iteration.
206+
"""List work-items for an iteration.
207207
:param id: Identifier of the iteration.
208208
:type: str
209209
:param team: Name or ID of the team.
@@ -221,7 +221,7 @@ def list_iteration_work_items(id, team, organization=None, project=None, detect=
221221

222222

223223
def set_default_iteration(team, id=None, default_iteration_macro=None, organization=None, project=None, detect=None): # pylint: disable=redefined-builtin
224-
"""(PREVIEW) Set default iteration for a team.
224+
"""Set default iteration for a team.
225225
:param id: Identifier of the iteration which needs to be set as default.
226226
:type: str
227227
:param team: Name or ID of the team.
@@ -244,7 +244,7 @@ def set_default_iteration(team, id=None, default_iteration_macro=None, organizat
244244

245245

246246
def set_backlog_iteration(team, id, organization=None, project=None, detect=None): # pylint: disable=redefined-builtin
247-
"""(PREVIEW) Set backlog iteration for a team.
247+
"""Set backlog iteration for a team.
248248
:param id: Identifier of the iteration which needs to be set as backlog iteration.
249249
:type: str
250250
:param team: Name or ID of the team.
@@ -260,7 +260,7 @@ def set_backlog_iteration(team, id, organization=None, project=None, detect=None
260260

261261

262262
def show_default_iteration(team, organization=None, project=None, detect=None):
263-
"""(PREVIEW) Show default iteration for a team.
263+
"""Show default iteration for a team.
264264
:param team: Name or ID of the team.
265265
:type: str
266266
"""
@@ -272,7 +272,7 @@ def show_default_iteration(team, organization=None, project=None, detect=None):
272272

273273

274274
def show_backlog_iteration(team, organization=None, project=None, detect=None):
275-
"""(PREVIEW) Show backlog iteration for a team.
275+
"""Show backlog iteration for a team.
276276
:param team: Name or ID of the team.
277277
:type: str
278278
"""

0 commit comments

Comments
 (0)