コード例 #1
0
ファイル: CleanTask.php プロジェクト: scabbiafw/scabbia2-fw
 /**
  * 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", []);
 }
コード例 #2
0
ファイル: ServeTask.php プロジェクト: scabbiafw/scabbia2-fw
 /**
  * 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"]]);
 }
コード例 #3
0
ファイル: HelpTask.php プロジェクト: scabbiafw/scabbia2-fw
 /**
  * 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", []);
 }
コード例 #4
0
ファイル: ConsoleTask.php プロジェクト: scabbiafw/scabbia2-fw
 /**
  * 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", []);
 }
コード例 #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", ""]]);
 }