docs: def load_commands(cli, manage_dict):
      """Loads the commands defined in manage file"""
      namespaced = manage_dict.get('namespaced')
  
      # get click commands
      commands = manage_dict.get('click_commands', [])
      for command_dict in commands:
          root_module = import_string(command_dict['module'])
          group = cli.manage_groups.get(command_dict.get('group'), cli)
          if getattr(root_module, '__path__', None):
              # This is a package
              iter_modules = pkgutil.iter_modules(
                  root_module.__path__, prefix=root_module.__name__ + '.'
              )
              submodules_names = [item[1] for item in iter_modules]
              submodules = [import_string(name) for name in submodules_names]
              for module in submodules:
                  add_click_commands(module, group, command_dict, namespaced)
          else:
              # a single file module
              add_click_commands(root_module, group, command_dict, namespaced)
  
      # get inline commands
      commands = manage_dict.get('inline_commands', [])
      for command_dict in commands:
          name = command_dict['name']
          help_text = command_dict.get('help_text')
          options = command_dict.get('options', {})
          arguments = command_dict.get('arguments', {})
          context = command_dict.get('context', [])
          code = command_dict['code']
          group = cli.manage_groups.get(command_dict.get('group'), cli)
          group.add_command(
              make_command_from_string(
                  code=code,
                  cmd_context=get_context(context),
                  options=options,
                  arguments=arguments,
                  help_text=help_text
              ),
              name=name
          )
  
      # get function commands
      commands = manage_dict.get('function_commands', [])
      for command_dict in commands:
          name = command_dict['name']
          help_text = command_dict.get('help_text')
          options = command_dict.get('options', {})
          arguments = command_dict.get('arguments', {})
          function = import_string(command_dict['function'])
          group = cli.manage_groups.get(command_dict.get('group'), cli)
          group.add_command(
              make_command_from_function(
                  function=function,
                  options=options,
                  arguments=arguments,
                  help_text=help_text
              ),
              name=name
          )