code: def get_command(self, ctx, name):
          
          env = ctx.ensure_object(environment.Environment)
          env.load()
  
          # Do alias lookup (only available for root commands)
          if len(self.path) == 0:
              name = env.resolve_alias(name)
  
          new_path = list(self.path)
          new_path.append(name)
          module = env.get_command(*new_path)
          if isinstance(module, types.ModuleType):
              return CommandLoader(*new_path, help=module.__doc__ or '')
          else:
              return module
docs: Get command for click.