Skip to content

Commit a372edf

Browse files
authored
Removed the preview command message for CLI
1 parent 95e98be commit a372edf

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

Diff for: azure-devops/azext_devops/dev/boards/commands.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ 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', command_type=workProjectAndTeamIterationOps, is_preview=True) as g:
65+
with self.command_group('boards iteration', command_type=workProjectAndTeamIterationOps) as g:
6666
# team iteration commands
6767
g.command('team list', 'get_team_iterations',
6868
table_transformer=transform_work_item_team_iterations_table_output)
@@ -91,7 +91,7 @@ def load_work_commands(self, _):
9191
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', command_type=workProjectAndTeamAreaOps, is_preview=True) as g:
94+
with self.command_group('boards area', command_type=workProjectAndTeamAreaOps) as g:
9595
# team iteration commands
9696
g.command('project list', 'get_project_areas',
9797
table_transformer=transform_work_item_project_classification_nodes_table_output)

Diff for: azure-devops/azext_devops/dev/pipelines/commands.py

+15-17
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,14 @@
102102
# pylint: disable=too-many-statements
103103
def load_build_commands(self, _):
104104
with self.command_group('pipelines', command_type=pipelineCreateOps) as g:
105-
g.command('create', 'pipeline_create', table_transformer=transform_pipeline_or_run_table_output,
106-
is_preview=True)
107-
g.command('update', 'pipeline_update', table_transformer=transform_pipeline_table_output, is_preview=True)
105+
g.command('create', 'pipeline_create', table_transformer=transform_pipeline_or_run_table_output)
106+
g.command('update', 'pipeline_update', table_transformer=transform_pipeline_table_output)
108107

109108
with self.command_group('pipelines', command_type=pipelinesOps) as g:
110-
g.command('list', 'pipeline_list', table_transformer=transform_pipelines_table_output, is_preview=True)
111-
g.show_command('show', 'pipeline_show', table_transformer=transform_pipeline_table_output, is_preview=True)
112-
g.command('delete', 'pipeline_delete', confirmation='Are you sure you want to delete this pipeline?',
113-
is_preview=True)
114-
g.command('run', 'pipeline_run', table_transformer=transform_pipeline_run_table_output, is_preview=True)
109+
g.command('list', 'pipeline_list', table_transformer=transform_pipelines_table_output)
110+
g.show_command('show', 'pipeline_show', table_transformer=transform_pipeline_table_output)
111+
g.command('delete', 'pipeline_delete', confirmation='Are you sure you want to delete this pipeline?')
112+
g.command('run', 'pipeline_run', table_transformer=transform_pipeline_run_table_output)
115113

116114
with self.command_group('pipelines build', command_type=buildOps) as g:
117115
# basic build commands
@@ -141,33 +139,33 @@ def load_build_commands(self, _):
141139
g.command('list', 'release_definition_list', table_transformer=transform_release_definitions_table_output)
142140
g.show_command('show', 'release_definition_show', table_transformer=transform_release_definition_table_output)
143141

144-
with self.command_group('pipelines runs artifact', command_type=pipelineRunArtifactsOps, is_preview=True) as g:
142+
with self.command_group('pipelines runs artifact', command_type=pipelineRunArtifactsOps) as g:
145143
g.command('download', 'run_artifact_download')
146144
g.command('list', 'run_artifact_list', table_transformer=transform_runs_artifact_table_output)
147145
g.command('upload', 'run_artifact_upload')
148146

149-
with self.command_group('pipelines runs tag', command_type=pipelinesRunOps, is_preview=True) as g:
147+
with self.command_group('pipelines runs tag', command_type=pipelinesRunOps) as g:
150148
g.command('add', 'pipeline_run_add_tag', table_transformer=transform_build_tags_output)
151149
g.command('list', 'pipeline_run_get_tags', table_transformer=transform_build_tags_output)
152150
g.command('delete', 'pipeline_run_delete_tag', table_transformer=transform_build_tags_output)
153151

154-
with self.command_group('pipelines runs', command_type=pipelinesRunOps, is_preview=True) as g:
152+
with self.command_group('pipelines runs', command_type=pipelinesRunOps) as g:
155153
g.command('list', 'pipeline_run_list', table_transformer=transform_pipeline_runs_table_output)
156154
g.show_command('show', 'pipeline_run_show', table_transformer=transform_pipeline_run_table_output)
157155

158-
with self.command_group('pipelines pool', command_type=pipelineAgentPoolQueueOps, is_preview=True) as g:
156+
with self.command_group('pipelines pool', command_type=pipelineAgentPoolQueueOps) as g:
159157
g.command('list', 'list_pools', table_transformer=transform_pipelines_pools_table_output)
160158
g.show_command('show', 'show_pool', table_transformer=transform_pipelines_pool_table_output)
161159

162-
with self.command_group('pipelines agent', command_type=pipelineAgentPoolQueueOps, is_preview=True) as g:
160+
with self.command_group('pipelines agent', command_type=pipelineAgentPoolQueueOps) as g:
163161
g.command('list', 'list_agents', table_transformer=transform_pipelines_agents_table_output)
164162
g.show_command('show', 'show_agent', table_transformer=transform_pipelines_agent_table_output)
165163

166-
with self.command_group('pipelines queue', command_type=pipelineAgentPoolQueueOps, is_preview=True) as g:
164+
with self.command_group('pipelines queue', command_type=pipelineAgentPoolQueueOps) as g:
167165
g.command('list', 'list_queues', table_transformer=transform_pipelines_queues_table_output)
168166
g.show_command('show', 'show_queue', table_transformer=transform_pipelines_queue_table_output)
169167

170-
with self.command_group('pipelines variable-group', command_type=pipelineVariableGroupOps, is_preview=True) as g:
168+
with self.command_group('pipelines variable-group', command_type=pipelineVariableGroupOps) as g:
171169
g.command('create', 'variable_group_create', table_transformer=transform_pipelines_variable_group_table_output)
172170
g.show_command('show', 'variable_group_show', table_transformer=transform_pipelines_variable_group_table_output)
173171
g.command('list', 'variable_group_list', table_transformer=transform_pipelines_variable_groups_table_output)
@@ -185,14 +183,14 @@ def load_build_commands(self, _):
185183
g.command('delete', 'variable_group_variable_delete',
186184
confirmation='Are you sure you want to delete this variable?')
187185

188-
with self.command_group('pipelines variable', command_type=pipelineVariablesOps, is_preview=True) as g:
186+
with self.command_group('pipelines variable', command_type=pipelineVariablesOps) as g:
189187
g.command('create', 'pipeline_variable_add', table_transformer=transform_pipelines_variables_table_output)
190188
g.command('update', 'pipeline_variable_update', table_transformer=transform_pipelines_variables_table_output)
191189
g.command('list', 'pipeline_variable_list', table_transformer=transform_pipelines_variables_table_output)
192190
g.command('delete', 'pipeline_variable_delete',
193191
confirmation='Are you sure you want to delete this variable?')
194192

195-
with self.command_group('pipelines folder', command_type=pipelineFoldersOps, is_preview=True) as g:
193+
with self.command_group('pipelines folder', command_type=pipelineFoldersOps) as g:
196194
g.command('create', 'pipeline_folder_create', table_transformer=transform_pipelines_folder_table_output)
197195
g.command('delete', 'pipeline_folder_delete', table_transformer=transform_pipelines_folder_table_output,
198196
confirmation='This will delete all pipelines in this folder. '

Diff for: azure-devops/azext_devops/dev/team/commands.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def load_team_commands(self, _):
111111
with self.command_group('devops service-endpoint', command_type=service_endpointOps) as g:
112112
g.command('list', 'list_service_endpoints', table_transformer=transform_service_endpoints_table_output)
113113
g.show_command('show', 'show_service_endpoint') # no table transform because type is not well defined
114-
g.command('create', 'create_service_endpoint', is_preview=True)
115-
g.command('update', 'update_service_endpoint', is_preview=True,
114+
g.command('create', 'create_service_endpoint')
115+
g.command('update', 'update_service_endpoint',
116116
table_transformer=transform_authorized_service_endpoint_table_output)
117117
g.command('azurerm create', 'create_azurerm_service_endpoint')
118118
g.command('github create', 'create_github_service_endpoint')
@@ -158,7 +158,7 @@ def load_team_commands(self, _):
158158
g.command('add', 'add_membership', table_transformer=transform_membership_table_output)
159159
g.command('remove', 'remove_membership', confirmation='Are you sure you want to delete this relationship?')
160160

161-
with self.command_group('devops security permission', command_type=security_permissionOps, is_preview=True) as g:
161+
with self.command_group('devops security permission', command_type=security_permissionOps) as g:
162162
g.command('list', 'list_tokens', table_transformer=transform_acl_output)
163163
g.command('update', 'update_permissions', table_transformer=transform_resolve_permission_bits)
164164
g.command('reset-all', 'reset_all_permissions',

0 commit comments

Comments
 (0)