add some modules commands

This commit is contained in:
Cayo Puigdefabregas 2023-06-15 18:30:55 +02:00
parent 17c88ef4b1
commit 523ca3e892
1 changed files with 21 additions and 0 deletions

View File

@ -31,6 +31,21 @@ try:
except Exception: except Exception:
GetMembers = None 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): class Devicehub(Teal):
test_client_class = Client test_client_class = Client
@ -80,6 +95,12 @@ class Devicehub(Teal):
self.get_token = GetToken(self) self.get_token = GetToken(self)
if GetMembers: if GetMembers:
self.get_members = GetMembers(self) 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( @self.cli.group(
short_help='Inventory management.', short_help='Inventory management.',