code: def command(name, mode):
      
      def decorator(fn):
          commands[name] = fn.__name__
          _Client._addMethod(fn.__name__, name, mode)
          return fn
      return decorator
docs: Label a method as a command with name.