From 523ca3e89289f12f99722325faef9ec049bb9808 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 15 Jun 2023 18:30:55 +0200 Subject: [PATCH] add some modules commands --- ereuse_devicehub/devicehub.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ereuse_devicehub/devicehub.py b/ereuse_devicehub/devicehub.py index 932dc82a..a9093fa1 100644 --- a/ereuse_devicehub/devicehub.py +++ b/ereuse_devicehub/devicehub.py @@ -31,6 +31,21 @@ try: except Exception: GetMembers = None +try: + from ereuse_devicehub.modules.dpp.commands.register_user_dlt import RegisterUserDlt +except Exception: + RegisterUserDlt = None + +try: + from ereuse_devicehub.modules.oidc.commands.add_member import AddMember +except Exception: + AddMember = None + +try: + from ereuse_devicehub.modules.oidc.commands.add_member import AddClientOidc +except Exception: + AddClientOidc = None + class Devicehub(Teal): test_client_class = Client @@ -80,6 +95,12 @@ class Devicehub(Teal): self.get_token = GetToken(self) if GetMembers: self.get_members = GetMembers(self) + if RegisterUserDlt: + self.register_user_dlt = RegisterUserDlt(self) + if AddMember: + self.register_user_dlt = AddMember(self) + if AddClientOidc: + self.register_user_dlt = AddClientOidc(self) @self.cli.group( short_help='Inventory management.',