コード例 #1
0
ファイル: SSHCommand.php プロジェクト: michaelesmith/milex
 protected function configure()
 {
     parent::configure();
     $this->addOption('ssh-identity-file', 'i', InputOption::VALUE_REQUIRED, 'The ssh identity file to use.')->addOption('ssh-user', 'u', InputOption::VALUE_REQUIRED, 'The ssh user to use.')->addOption('ssh-password', 'p', InputOption::VALUE_REQUIRED, 'The ssh password to use.');
 }
コード例 #2
0
ファイル: MyCommand.php プロジェクト: michaelesmith/milex
 protected function configure()
 {
     parent::configure();
     $this->setName('my-command')->setDescription('My new Command')->addArgument('name', InputArgument::OPTIONAL, 'Who do you want to greet?')->addOption('yell', null, InputOption::VALUE_NONE, 'If set, the task will yell in uppercase letters');
 }