Example #1
0
 /**
  * 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", []);
 }
Example #2
0
 /**
  * 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"]]);
 }
Example #3
0
 /**
  * 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", []);
 }
Example #4
0
 /**
  * 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", []);
 }
Example #5
0
 /**
  * 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", ""]]);
 }