code: def get_command(self, ctx, name):
          
          if not self._commands_dir:
              return defaults.get_command(ctx, name)
  
          ns = {}
          fn = os.path.join(self._commands_dir, name + '.py')
  
          try:
              with open(fn) as f:
                  code = compile(f.read(), fn, 'exec')
          except IOError:
              return defaults.get_command(ctx, name)
  
          eval(code, ns, ns)
  
          CLI = 'cli'
  
          try:
              return ns[CLI]
          except KeyError:
              ctx.fail('`{}` not defined in "{}"'.format(CLI, name))
docs: Get the command from either the commands dir or default group