|
1 | | -# -------------------------------------------------------------------------------------------- |
| 1 | +# -------------------------------------------------------------------------- |
2 | 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 | | -# -------------------------------------------------------------------------------------------- |
| 3 | +# Licensed under the MIT License. See License.txt in the project root for |
| 4 | +# license information. |
| 5 | +# |
| 6 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 7 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 8 | +# regenerated. |
| 9 | +# -------------------------------------------------------------------------- |
5 | 10 |
|
6 | 11 | from azure.cli.core import AzCommandsLoader |
7 | | - |
8 | | -from azext_storagesync._help import helps # pylint: disable=unused-import |
| 12 | +from azext_storagesync.generated._help import helps # pylint: disable=unused-import |
| 13 | +try: |
| 14 | + from azext_storagesync.manual._help import helps # pylint: disable=reimported |
| 15 | +except ImportError: |
| 16 | + pass |
9 | 17 |
|
10 | 18 |
|
11 | 19 | class MicrosoftStorageSyncCommandsLoader(AzCommandsLoader): |
12 | 20 |
|
13 | 21 | def __init__(self, cli_ctx=None): |
14 | 22 | from azure.cli.core.commands import CliCommandType |
15 | | - from azext_storagesync._client_factory import cf_storagesync |
| 23 | + from azext_storagesync.generated._client_factory import cf_storagesync_cl |
16 | 24 | storagesync_custom = CliCommandType( |
17 | 25 | operations_tmpl='azext_storagesync.custom#{}', |
18 | | - client_factory=cf_storagesync) |
19 | | - super(MicrosoftStorageSyncCommandsLoader, self).__init__(cli_ctx=cli_ctx, |
20 | | - custom_command_type=storagesync_custom) |
| 26 | + client_factory=cf_storagesync_cl) |
| 27 | + parent = super(MicrosoftStorageSyncCommandsLoader, self) |
| 28 | + parent.__init__(cli_ctx=cli_ctx, custom_command_type=storagesync_custom) |
21 | 29 |
|
22 | 30 | def load_command_table(self, args): |
23 | | - from azext_storagesync.commands import load_command_table |
| 31 | + from azext_storagesync.generated.commands import load_command_table |
24 | 32 | load_command_table(self, args) |
| 33 | + try: |
| 34 | + from azext_storagesync.manual.commands import load_command_table as load_command_table_manual |
| 35 | + load_command_table_manual(self, args) |
| 36 | + except ImportError: |
| 37 | + pass |
25 | 38 | return self.command_table |
26 | 39 |
|
27 | 40 | def load_arguments(self, command): |
28 | | - from azext_storagesync._params import load_arguments |
| 41 | + from azext_storagesync.generated._params import load_arguments |
29 | 42 | load_arguments(self, command) |
| 43 | + try: |
| 44 | + from azext_storagesync.manual._params import load_arguments as load_arguments_manual |
| 45 | + load_arguments_manual(self, command) |
| 46 | + except ImportError: |
| 47 | + pass |
30 | 48 |
|
31 | 49 |
|
32 | 50 | COMMAND_LOADER_CLS = MicrosoftStorageSyncCommandsLoader |
0 commit comments