forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from ea980db5f4d14fc90fcd4c673a173eccab62473b
- Loading branch information
SDK Automation
committed
Sep 29, 2020
1 parent
76f3870
commit 379a529
Showing
67 changed files
with
16,277 additions
and
5,877 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,50 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from azure.cli.core import AzCommandsLoader | ||
|
||
from azext_storagesync._help import helps # pylint: disable=unused-import | ||
from azext_storagesync.generated._help import helps # pylint: disable=unused-import | ||
try: | ||
from azext_storagesync.manual._help import helps # pylint: disable=reimported | ||
except ImportError: | ||
pass | ||
|
||
|
||
class MicrosoftStorageSyncCommandsLoader(AzCommandsLoader): | ||
|
||
def __init__(self, cli_ctx=None): | ||
from azure.cli.core.commands import CliCommandType | ||
from azext_storagesync._client_factory import cf_storagesync | ||
from azext_storagesync.generated._client_factory import cf_storagesync_cl | ||
storagesync_custom = CliCommandType( | ||
operations_tmpl='azext_storagesync.custom#{}', | ||
client_factory=cf_storagesync) | ||
super(MicrosoftStorageSyncCommandsLoader, self).__init__(cli_ctx=cli_ctx, | ||
custom_command_type=storagesync_custom) | ||
client_factory=cf_storagesync_cl) | ||
parent = super(MicrosoftStorageSyncCommandsLoader, self) | ||
parent.__init__(cli_ctx=cli_ctx, custom_command_type=storagesync_custom) | ||
|
||
def load_command_table(self, args): | ||
from azext_storagesync.commands import load_command_table | ||
from azext_storagesync.generated.commands import load_command_table | ||
load_command_table(self, args) | ||
try: | ||
from azext_storagesync.manual.commands import load_command_table as load_command_table_manual | ||
load_command_table_manual(self, args) | ||
except ImportError: | ||
pass | ||
return self.command_table | ||
|
||
def load_arguments(self, command): | ||
from azext_storagesync._params import load_arguments | ||
from azext_storagesync.generated._params import load_arguments | ||
load_arguments(self, command) | ||
try: | ||
from azext_storagesync.manual._params import load_arguments as load_arguments_manual | ||
load_arguments_manual(self, command) | ||
except ImportError: | ||
pass | ||
|
||
|
||
COMMAND_LOADER_CLS = MicrosoftStorageSyncCommandsLoader |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.