Removed the preview command message for CLI

This commit is contained in:
Roshan Soni 2021-10-27 17:19:52 +05:30 коммит произвёл GitHub
Родитель 95e98be453
Коммит a372edfc9f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 20 добавлений и 22 удалений

Просмотреть файл

@ -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)
@ -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)

Просмотреть файл

@ -102,16 +102,14 @@ pipelineFoldersOps = CliCommandType(
# 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
@ -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)
@ -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. '

Просмотреть файл

@ -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')
@ -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',