1# -------------------------------------------------------------------------------------------- 2# Copyright (c) Microsoft Corporation. All rights reserved. 3# Licensed under the MIT License. See License.txt in the project root for license information. 4# -------------------------------------------------------------------------------------------- 5 6from azure.cli.core import AzCommandsLoader 7 8import azure.cli.command_modules.acr._help # pylint: disable=unused-import 9 10 11class ACRCommandsLoader(AzCommandsLoader): 12 13 def __init__(self, cli_ctx=None): 14 from azure.cli.core.profiles import ResourceType 15 super(ACRCommandsLoader, self).__init__(cli_ctx=cli_ctx, 16 resource_type=ResourceType.MGMT_CONTAINERREGISTRY) 17 18 def load_command_table(self, args): 19 from azure.cli.command_modules.acr.commands import load_command_table 20 load_command_table(self, args) 21 return self.command_table 22 23 def load_arguments(self, command): 24 from azure.cli.command_modules.acr._params import load_arguments 25 load_arguments(self, command) 26 27 28COMMAND_LOADER_CLS = ACRCommandsLoader 29