Skip to content

Commit 5e868cf

Browse files
{Cosmos DB} Reclaim the documentdb command namespace (#33686)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f6aff80 commit 5e868cf

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

  • src/azure-cli/azure/cli/command_modules/cosmosdb

src/azure-cli/azure/cli/command_modules/cosmosdb/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,11 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
from knack.events import EVENT_INVOKER_PRE_PARSE_ARGS
7-
86
from azure.cli.core import AzCommandsLoader
97

108
from azure.cli.command_modules.cosmosdb._help import helps # pylint: disable=unused-import
119

1210

13-
def _documentdb_deprecate(_, args):
14-
if args[0] == 'documentdb':
15-
from azure.cli.core.util import CLIError
16-
raise CLIError('All documentdb commands have been renamed to cosmosdb')
17-
18-
1911
class CosmosDbCommandsLoader(AzCommandsLoader):
2012

2113
def __init__(self, cli_ctx=None):
@@ -27,8 +19,6 @@ def __init__(self, cli_ctx=None):
2719
operations_tmpl='azure.cli.command_modules.cosmosdb.custom#{}',
2820
client_factory=cf_cosmosdb_document)
2921

30-
cli_ctx.register_event(EVENT_INVOKER_PRE_PARSE_ARGS, _documentdb_deprecate)
31-
3222
super().__init__(cli_ctx=cli_ctx,
3323
resource_type=ResourceType.MGMT_COSMOSDB,
3424
custom_command_type=cosmosdb_custom,

0 commit comments

Comments
 (0)