/** * Registers the tasks itself to a command interpreter instance * * @param CommandInterpreter $uCommandInterpreter interpreter to be registered at * * @return void */ public static function registerToCommandInterpreter(CommandInterpreter $uCommandInterpreter) { $uCommandInterpreter->addCommand("clean", "Cleans the writable cache", []); }
/** * Registers the tasks itself to a command interpreter instance * * @param CommandInterpreter $uCommandInterpreter interpreter to be registered at * * @return void */ public static function registerToCommandInterpreter(CommandInterpreter $uCommandInterpreter) { $uCommandInterpreter->addCommand("serve", "Runs built-in PHP server", [[Console::OPTION, "--host", "Binding host address"], [Console::OPTION, "--port", "Binding port number"]]); }
/** * Registers the tasks itself to a command interpreter instance * * @param CommandInterpreter $uCommandInterpreter interpreter to be registered at * * @return void */ public static function registerToCommandInterpreter(CommandInterpreter $uCommandInterpreter) { $uCommandInterpreter->addCommand("help", "Displays this help", []); }
/** * Registers the tasks itself to a command interpreter instance * * @param CommandInterpreter $uCommandInterpreter interpreter to be registered at * * @return void */ public static function registerToCommandInterpreter(CommandInterpreter $uCommandInterpreter) { $uCommandInterpreter->addCommand("console", "Launches a REPL command interface", []); }
/** * Registers the tasks itself to a command interpreter instance * * @param CommandInterpreter $uCommandInterpreter interpreter to be registered at * * @return void */ public static function registerToCommandInterpreter(CommandInterpreter $uCommandInterpreter) { $uCommandInterpreter->addCommand("generate", "Calls all generators registered to your project", [[Console::OPTION_FLAG, "--clean", ""]]); }