Skip to content

Commit

Permalink
Removed the preview command message for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
roshan-sy authored Oct 27, 2021
1 parent 95e98be commit a372edf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
4 changes: 2 additions & 2 deletions azure-devops/azext_devops/dev/boards/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def load_work_commands(self, _):
confirmation='Are you sure you want to remove this relation(s)?')
g.command('relation show', 'show_work_item', table_transformer=transform_work_item_relations)

with self.command_group('boards iteration', command_type=workProjectAndTeamIterationOps, is_preview=True) as g:
with self.command_group('boards iteration', command_type=workProjectAndTeamIterationOps) as g:
# team iteration commands
g.command('team list', 'get_team_iterations',
table_transformer=transform_work_item_team_iterations_table_output)
Expand Down Expand Up @@ -91,7 +91,7 @@ def load_work_commands(self, _):
g.command('project create', 'create_project_iteration',
table_transformer=transform_work_item_project_classification_nodes_table_output)

with self.command_group('boards area', command_type=workProjectAndTeamAreaOps, is_preview=True) as g:
with self.command_group('boards area', command_type=workProjectAndTeamAreaOps) as g:
# team iteration commands
g.command('project list', 'get_project_areas',
table_transformer=transform_work_item_project_classification_nodes_table_output)
Expand Down
32 changes: 15 additions & 17 deletions azure-devops/azext_devops/dev/pipelines/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,14 @@
# pylint: disable=too-many-statements
def load_build_commands(self, _):
with self.command_group('pipelines', command_type=pipelineCreateOps) as g:
g.command('create', 'pipeline_create', table_transformer=transform_pipeline_or_run_table_output,
is_preview=True)
g.command('update', 'pipeline_update', table_transformer=transform_pipeline_table_output, is_preview=True)
g.command('create', 'pipeline_create', table_transformer=transform_pipeline_or_run_table_output)
g.command('update', 'pipeline_update', table_transformer=transform_pipeline_table_output)

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

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

with self.command_group('pipelines runs artifact', command_type=pipelineRunArtifactsOps, is_preview=True) as g:
with self.command_group('pipelines runs artifact', command_type=pipelineRunArtifactsOps) as g:
g.command('download', 'run_artifact_download')
g.command('list', 'run_artifact_list', table_transformer=transform_runs_artifact_table_output)
g.command('upload', 'run_artifact_upload')

with self.command_group('pipelines runs tag', command_type=pipelinesRunOps, is_preview=True) as g:
with self.command_group('pipelines runs tag', command_type=pipelinesRunOps) as g:
g.command('add', 'pipeline_run_add_tag', table_transformer=transform_build_tags_output)
g.command('list', 'pipeline_run_get_tags', table_transformer=transform_build_tags_output)
g.command('delete', 'pipeline_run_delete_tag', table_transformer=transform_build_tags_output)

with self.command_group('pipelines runs', command_type=pipelinesRunOps, is_preview=True) as g:
with self.command_group('pipelines runs', command_type=pipelinesRunOps) as g:
g.command('list', 'pipeline_run_list', table_transformer=transform_pipeline_runs_table_output)
g.show_command('show', 'pipeline_run_show', table_transformer=transform_pipeline_run_table_output)

with self.command_group('pipelines pool', command_type=pipelineAgentPoolQueueOps, is_preview=True) as g:
with self.command_group('pipelines pool', command_type=pipelineAgentPoolQueueOps) as g:
g.command('list', 'list_pools', table_transformer=transform_pipelines_pools_table_output)
g.show_command('show', 'show_pool', table_transformer=transform_pipelines_pool_table_output)

with self.command_group('pipelines agent', command_type=pipelineAgentPoolQueueOps, is_preview=True) as g:
with self.command_group('pipelines agent', command_type=pipelineAgentPoolQueueOps) as g:
g.command('list', 'list_agents', table_transformer=transform_pipelines_agents_table_output)
g.show_command('show', 'show_agent', table_transformer=transform_pipelines_agent_table_output)

with self.command_group('pipelines queue', command_type=pipelineAgentPoolQueueOps, is_preview=True) as g:
with self.command_group('pipelines queue', command_type=pipelineAgentPoolQueueOps) as g:
g.command('list', 'list_queues', table_transformer=transform_pipelines_queues_table_output)
g.show_command('show', 'show_queue', table_transformer=transform_pipelines_queue_table_output)

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

with self.command_group('pipelines variable', command_type=pipelineVariablesOps, is_preview=True) as g:
with self.command_group('pipelines variable', command_type=pipelineVariablesOps) as g:
g.command('create', 'pipeline_variable_add', table_transformer=transform_pipelines_variables_table_output)
g.command('update', 'pipeline_variable_update', table_transformer=transform_pipelines_variables_table_output)
g.command('list', 'pipeline_variable_list', table_transformer=transform_pipelines_variables_table_output)
g.command('delete', 'pipeline_variable_delete',
confirmation='Are you sure you want to delete this variable?')

with self.command_group('pipelines folder', command_type=pipelineFoldersOps, is_preview=True) as g:
with self.command_group('pipelines folder', command_type=pipelineFoldersOps) as g:
g.command('create', 'pipeline_folder_create', table_transformer=transform_pipelines_folder_table_output)
g.command('delete', 'pipeline_folder_delete', table_transformer=transform_pipelines_folder_table_output,
confirmation='This will delete all pipelines in this folder. '
Expand Down
6 changes: 3 additions & 3 deletions azure-devops/azext_devops/dev/team/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def load_team_commands(self, _):
with self.command_group('devops service-endpoint', command_type=service_endpointOps) as g:
g.command('list', 'list_service_endpoints', table_transformer=transform_service_endpoints_table_output)
g.show_command('show', 'show_service_endpoint') # no table transform because type is not well defined
g.command('create', 'create_service_endpoint', is_preview=True)
g.command('update', 'update_service_endpoint', is_preview=True,
g.command('create', 'create_service_endpoint')
g.command('update', 'update_service_endpoint',
table_transformer=transform_authorized_service_endpoint_table_output)
g.command('azurerm create', 'create_azurerm_service_endpoint')
g.command('github create', 'create_github_service_endpoint')
Expand Down Expand Up @@ -158,7 +158,7 @@ def load_team_commands(self, _):
g.command('add', 'add_membership', table_transformer=transform_membership_table_output)
g.command('remove', 'remove_membership', confirmation='Are you sure you want to delete this relationship?')

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

0 comments on commit a372edf

Please sign in to comment.