partnercenter/azext_partnercenter/__init__.py (16 lines of code) (raw):

# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- from azure.cli.core import AzCommandsLoader from azext_partnercenter._help import helps # pylint: disable=unused-import class PartnerCenterCommandsLoader(AzCommandsLoader): def __init__(self, cli_ctx=None): from azure.cli.core.commands import CliCommandType custom_type = CliCommandType(operations_tmpl='azext_partnercenter#{}') super().__init__(cli_ctx=cli_ctx, custom_command_type=custom_type) from azext_partnercenter.operations import PartnerCenterSubGroupCommandsLoader self.subgroups_loader = PartnerCenterSubGroupCommandsLoader(self) def load_command_table(self, args): self.subgroups_loader.load_command_table(args) return self.command_table def load_arguments(self, command): self.subgroups_loader.load_arguments(command) COMMAND_LOADER_CLS = PartnerCenterCommandsLoader ISSUES_URL = "https://github.com/Azure/partnercenter-cli-extension/issues"