text: # --------------------------------------------------------------------------
  # Copyright (c) Microsoft Corporation. All rights reserved.
  # Licensed under the MIT License. See License.txt in the project root for
  # license information.
  #
  # Code generated by Microsoft (R) AutoRest Code Generator.
  # Changes may cause incorrect behavior and will be lost if the code is
  # regenerated.
  # --------------------------------------------------------------------------
  
  from azure.cli.core import AzCommandsLoader
  from azext_users.generated._help import helps  # pylint: disable=unused-import
  try:
      from azext_users.manual._help import helps  # pylint: disable=reimported
  except ImportError as e:
      if e.name.endswith('manual._help'):
          pass
      else:
          raise e
  
  
  class UsersCommandsLoader(AzCommandsLoader):
  
      def __init__(self, cli_ctx=None):
          from azure.cli.core.commands import CliCommandType
          from azext_users.generated._client_factory import cf_users_cl
          users_custom = CliCommandType(
              operations_tmpl='azext_users.custom#{}',
              client_factory=cf_users_cl)
          parent = super(UsersCommandsLoader, self)
          parent.__init__(cli_ctx=cli_ctx, custom_command_type=users_custom)
  
      def load_command_table(self, args):
          from azext_users.generated.commands import load_command_table
          load_command_table(self, args)
          try:
              from azext_users.manual.commands import load_command_table as load_command_table_manual
              load_command_table_manual(self, args)
          except ImportError as e:
              if e.name.endswith('manual.commands'):
                  pass
              else:
                  raise e
          return self.command_table
  
      def load_arguments(self, command):
          from azext_users.generated._params import load_arguments
          load_arguments(self, command)
          try:
              from azext_users.manual._params import load_arguments as load_arguments_manual
              load_arguments_manual(self, command)
          except ImportError as e:
              if e.name.endswith('manual._params'):
                  pass
              else:
                  raise e
  
  
  COMMAND_LOADER_CLS = UsersCommandsLoader
  