From a5af3ec4df0ba2c1b6c2787b2b81c85678b14dbe Mon Sep 17 00:00:00 2001 From: Ryan K Date: Wed, 1 Nov 2023 10:10:34 -0700 Subject: [PATCH] Revert "chore: Comment out non-init commands + increment version (#66)" This reverts commit f91f604d6d5c6e54c37038b3ffa1dc0d9f119dd4. --- azext_edge/constants.py | 2 +- azext_edge/edge/command_map.py | 72 +++++++++++++++++----------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/azext_edge/constants.py b/azext_edge/constants.py index 71b4cecb6..df04b152f 100644 --- a/azext_edge/constants.py +++ b/azext_edge/constants.py @@ -7,7 +7,7 @@ import os -VERSION = "0.0.5a1" +VERSION = "0.0.5a1.dev1" EXTENSION_NAME = "azure-iot-ops" EXTENSION_ROOT = os.path.dirname(os.path.abspath(__file__)) USER_AGENT = "IotOperationsCliExtension/{}".format(VERSION) diff --git a/azext_edge/edge/command_map.py b/azext_edge/edge/command_map.py index a87d40844..bdf5fa8aa 100644 --- a/azext_edge/edge/command_map.py +++ b/azext_edge/edge/command_map.py @@ -23,45 +23,45 @@ def load_iotedge_commands(self, _): command_type=edge_resource_ops, is_preview=True, ) as cmd_group: - # cmd_group.command("check", "check") + cmd_group.command("check", "check") cmd_group.command("init", "init") - # with self.command_group( - # "iot ops support", - # command_type=edge_resource_ops, - # ) as cmd_group: - # cmd_group.command("create-bundle", "support_bundle") + with self.command_group( + "iot ops support", + command_type=edge_resource_ops, + ) as cmd_group: + cmd_group.command("create-bundle", "support_bundle") - # with self.command_group( - # "iot ops mq", - # command_type=e4k_resource_ops, - # ) as cmd_group: - # cmd_group.command("stats", "stats") - # cmd_group.command("get-password-hash", "get_password_hash") + with self.command_group( + "iot ops mq", + command_type=e4k_resource_ops, + ) as cmd_group: + cmd_group.command("stats", "stats") + cmd_group.command("get-password-hash", "get_password_hash") - # with self.command_group( - # "iot ops asset", - # command_type=asset_resource_ops, - # ) as cmd_group: - # cmd_group.command("create", "create_asset") - # cmd_group.command("delete", "delete_asset") - # cmd_group.command("list", "list_assets") - # cmd_group.command("query", "query_assets") - # cmd_group.show_command("show", "show_asset") - # cmd_group.command("update", "update_asset") + with self.command_group( + "iot ops asset", + command_type=asset_resource_ops, + ) as cmd_group: + cmd_group.command("create", "create_asset") + cmd_group.command("delete", "delete_asset") + cmd_group.command("list", "list_assets") + cmd_group.command("query", "query_assets") + cmd_group.show_command("show", "show_asset") + cmd_group.command("update", "update_asset") - # with self.command_group( - # "iot ops asset data-point", - # command_type=asset_resource_ops, - # ) as cmd_group: - # cmd_group.command("add", "add_asset_data_point") - # cmd_group.command("list", "list_asset_data_points") - # cmd_group.command("remove", "remove_asset_data_point") + with self.command_group( + "iot ops asset data-point", + command_type=asset_resource_ops, + ) as cmd_group: + cmd_group.command("add", "add_asset_data_point") + cmd_group.command("list", "list_asset_data_points") + cmd_group.command("remove", "remove_asset_data_point") - # with self.command_group( - # "iot ops asset event", - # command_type=asset_resource_ops, - # ) as cmd_group: - # cmd_group.command("add", "add_asset_event") - # cmd_group.command("list", "list_asset_events") - # cmd_group.command("remove", "remove_asset_event") + with self.command_group( + "iot ops asset event", + command_type=asset_resource_ops, + ) as cmd_group: + cmd_group.command("add", "add_asset_event") + cmd_group.command("list", "list_asset_events") + cmd_group.command("remove", "remove_asset_event")