Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"command" replaced by "show_command" for show #1168

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/admin/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
def load_admin_commands(self, _):
with self.command_group('devops admin banner', command_type=bannerops) as g:
g.command('list', 'banner_list', table_transformer=transform_banner_table_output)
g.command('show', 'banner_show', table_transformer=transform_banner_table_output)
g.show_command('show', 'banner_show', table_transformer=transform_banner_table_output)
g.command('add', 'banner_add', table_transformer=transform_banner_table_output)
g.command('remove', 'banner_remove')
g.command('update', 'banner_update', table_transformer=transform_banner_table_output)
20 changes: 10 additions & 10 deletions azure-devops/azext_devops/dev/pipelines/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def load_build_commands(self, _):

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.command('show', 'pipeline_show', table_transformer=transform_pipeline_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)
Expand All @@ -117,7 +117,7 @@ def load_build_commands(self, _):
# basic build commands
g.command('list', 'build_list', table_transformer=transform_builds_table_output)
g.command('queue', 'build_queue', table_transformer=transform_build_table_output)
g.command('show', 'build_show', table_transformer=transform_build_table_output)
g.show_command('show', 'build_show', table_transformer=transform_build_table_output)

with self.command_group('pipelines build tag', command_type=buildOps) as g:
# basic build tag commands
Expand All @@ -128,18 +128,18 @@ def load_build_commands(self, _):
with self.command_group('pipelines build definition', command_type=buildDefOps) as g:
# basic build definition commands
g.command('list', 'build_definition_list', table_transformer=transform_definitions_table_output)
g.command('show', 'build_definition_show', table_transformer=transform_definition_table_output)
g.show_command('show', 'build_definition_show', table_transformer=transform_definition_table_output)

with self.command_group('pipelines release', command_type=releaseOps) as g:
# basic release commands
g.command('list', 'release_list', table_transformer=transform_releases_table_output)
g.command('create', 'release_create', table_transformer=transform_release_table_output)
g.command('show', 'release_show', table_transformer=transform_release_table_output)
g.show_command('show', 'release_show', table_transformer=transform_release_table_output)

with self.command_group('pipelines release definition', command_type=releaseDefinitionOps) as g:
# basic release commands
g.command('list', 'release_definition_list', table_transformer=transform_release_definitions_table_output)
g.command('show', 'release_definition_show', table_transformer=transform_release_definition_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:
g.command('download', 'run_artifact_download')
Expand All @@ -153,23 +153,23 @@ def load_build_commands(self, _):

with self.command_group('pipelines runs', command_type=pipelinesRunOps, is_preview=True) as g:
g.command('list', 'pipeline_run_list', table_transformer=transform_pipeline_runs_table_output)
g.command('show', 'pipeline_run_show', table_transformer=transform_pipeline_run_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:
g.command('list', 'list_pools', table_transformer=transform_pipelines_pools_table_output)
g.command('show', 'show_pool', table_transformer=transform_pipelines_pool_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:
g.command('list', 'list_agents', table_transformer=transform_pipelines_agents_table_output)
g.command('show', 'show_agent', table_transformer=transform_pipelines_agent_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:
g.command('list', 'list_queues', table_transformer=transform_pipelines_queues_table_output)
g.command('show', 'show_queue', table_transformer=transform_pipelines_queue_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:
g.command('create', 'variable_group_create', table_transformer=transform_pipelines_variable_group_table_output)
g.command('show', 'variable_group_show', 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)
g.command('update', 'variable_group_update', table_transformer=transform_pipelines_variable_group_table_output)
g.command('delete', 'variable_group_delete',
Expand Down
6 changes: 3 additions & 3 deletions azure-devops/azext_devops/dev/repos/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ def load_code_commands(self, _): # pylint: disable=too-many-statements
g.command('create', 'create_repo', table_transformer=transform_repo_table_output)
g.command('delete', 'delete_repo', confirmation='Are you sure you want to delete this repository?')
g.command('list', 'list_repos', table_transformer=transform_repos_table_output)
g.command('show', 'show_repo', table_transformer=transform_repo_table_output)
g.show_command('show', 'show_repo', table_transformer=transform_repo_table_output)
g.command('update', 'update_repo', table_transformer=transform_repo_table_output)

with self.command_group('repos policy', command_type=policyOps) as g:
# repository/ branch policies
g.command('list', 'list_policy', table_transformer=transform_repo_policies_table_output)
g.command('show', 'get_policy', table_transformer=transform_repo_policy_table_output)
g.show_command('show', 'get_policy', table_transformer=transform_repo_policy_table_output)
g.command('delete', 'delete_policy', confirmation='Are you sure you want to delete this policy?')
g.command('create', 'create_policy_configuration_file', table_transformer=transform_repo_policy_table_output)
g.command('update', 'update_policy_configuration_file', table_transformer=transform_repo_policy_table_output)
Expand Down Expand Up @@ -100,7 +100,7 @@ def load_code_commands(self, _): # pylint: disable=too-many-statements
# basic pr commands
g.command('create', 'create_pull_request', table_transformer=transform_pull_request_table_output)
g.command('update', 'update_pull_request', table_transformer=transform_pull_request_table_output)
g.command('show', 'show_pull_request', table_transformer=transform_pull_request_table_output)
g.show_command('show', 'show_pull_request', table_transformer=transform_pull_request_table_output)
g.command('list', 'list_pull_requests', table_transformer=transform_pull_requests_table_output)
g.command('checkout', 'checkout')

Expand Down
20 changes: 10 additions & 10 deletions azure-devops/azext_devops/dev/team/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ def load_team_commands(self, _):
with self.command_group('devops project', command_type=projectOps) as g:
g.command('create', 'create_project', table_transformer=transform_project_table_output)
g.command('delete', 'delete_project', confirmation='Are you sure you want to delete this project?')
g.command('show', 'show_project', table_transformer=transform_project_table_output)
g.show_command('show', 'show_project', table_transformer=transform_project_table_output)
g.command('list', 'list_projects', table_transformer=transform_projects_table_output)

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.command('show', 'show_service_endpoint') # no table transform because type is not well defined
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,
table_transformer=transform_authorized_service_endpoint_table_output)
Expand All @@ -122,7 +122,7 @@ def load_team_commands(self, _):
with self.command_group('devops team', command_type=teamOps) as g:
g.command('create', 'create_team', table_transformer=transform_team_table_output)
g.command('delete', 'delete_team', confirmation='Are you sure you want to delete this team?')
g.command('show', 'get_team', table_transformer=transform_team_table_output)
g.show_command('show', 'get_team', table_transformer=transform_team_table_output)
g.command('list', 'get_teams', table_transformer=transform_teams_table_output)
g.command('list-member', 'get_team_members', table_transformer=transform_team_members_table_output)
g.command('update', 'update_team', table_transformer=transform_team_table_output)
Expand All @@ -132,7 +132,7 @@ def load_team_commands(self, _):

with self.command_group('devops user', command_type=userOps) as g:
g.command('list', 'get_user_entitlements', table_transformer=transform_users_table_output)
g.command('show', 'get_user_entitlement', table_transformer=transform_user_table_output)
g.show_command('show', 'get_user_entitlement', table_transformer=transform_user_table_output)
g.command('remove', 'delete_user_entitlement', confirmation='Are you sure you want to remove this user?')
g.command('update', 'update_user_entitlement', table_transformer=transform_user_table_output)
g.command('add', 'add_user_entitlement', table_transformer=transform_user_table_output)
Expand All @@ -141,14 +141,14 @@ def load_team_commands(self, _):
g.command('list', 'list_extensions', table_transformer=transform_extensions_table_output)
g.command('uninstall', 'uninstall_extension', confirmation='Are you sure you want to uninstall this extension?')
g.command('install', 'install_extension', table_transformer=transform_extension_table_output)
g.command('show', 'get_extension', table_transformer=transform_extension_table_output)
g.show_command('show', 'get_extension', table_transformer=transform_extension_table_output)
g.command('enable', 'enable_extension', table_transformer=transform_extension_table_output)
g.command('disable', 'disable_extension', table_transformer=transform_extension_table_output)
g.command('search', 'search_extensions', table_transformer=transform_extension_search_results_table_output)

with self.command_group('devops security group', command_type=security_groupOps) as g:
g.command('list', 'list_groups', table_transformer=transform_groups_table_output)
g.command('show', 'get_group', table_transformer=transform_group_table_output)
g.show_command('show', 'get_group', table_transformer=transform_group_table_output)
g.command('update', 'update_group', table_transformer=transform_group_table_output)
g.command('create', 'create_group', table_transformer=transform_group_table_output)
g.command('delete', 'delete_group', confirmation='Are you sure you want to delete this group?')
Expand All @@ -164,22 +164,22 @@ def load_team_commands(self, _):
g.command('reset-all', 'reset_all_permissions',
confirmation='Are you sure you want to reset all explicit permissions for this user/group and token?')
g.command('reset', 'reset_permissions', table_transformer=transform_resolve_permission_bits)
g.command('show', 'show_permissions', table_transformer=transform_resolve_permission_bits)
g.show_command('show', 'show_permissions', table_transformer=transform_resolve_permission_bits)

with self.command_group('devops security permission namespace', command_type=security_permissionOps) as g:
g.command('list', 'list_namespaces', table_transformer=transform_namespaces_table_output)
g.command('show', 'show_namespace', table_transformer=transform_namespace_table_output)
g.show_command('show', 'show_namespace', table_transformer=transform_namespace_table_output)

with self.command_group('devops wiki', command_type=wikiOps) as g:
g.command('create', 'create_wiki', table_transformer=transform_wiki_table_output)
g.command('list', 'list_wiki', table_transformer=transform_wikis_table_output)
g.command('show', 'show_wiki', table_transformer=transform_wiki_table_output)
g.show_command('show', 'show_wiki', table_transformer=transform_wiki_table_output)
g.command('delete', 'delete_wiki', table_transformer=transform_wiki_table_output,
confirmation='Are you sure you want to delete this wiki?')

with self.command_group('devops wiki page', command_type=wikiOps) as g:
g.command('create', 'add_page', table_transformer=transform_wiki_page_table_output)
g.command('update', 'update_page', table_transformer=transform_wiki_page_table_output)
g.command('show', 'get_page', table_transformer=transform_wiki_page_table_output)
g.show_command('show', 'get_page', table_transformer=transform_wiki_page_table_output)
g.command('delete', 'delete_page',
confirmation='Are you sure you want to delete this wiki page?')