code: static function register(string $name, callable $callback) {
          if (isset(self::$callbacks[$name]))
              self::warning("Overwriting console callback \"$name\".");
          self::$callbacks[$name] = $callback;
      }
docs: 注册控制台函数
  
  @param string $name
  @param callable $callback