상속: extends Symfony\Component\Console\Command\Command, use trait Acacha\Llum\Traits\LaravelConfigFile
예제 #1
0
파일: InitCommand.php 프로젝트: acacha/llum
 /**
  * InitCommand constructor.
  *
  * @param Filesystem $filesytem
  * @param RCFileCompiler $compiler
  * @param GithubAPI $api
  */
 public function __construct(Filesystem $filesytem, RCFileCompiler $compiler, GithubAPI $api)
 {
     parent::__construct();
     $this->filesytem = $filesytem;
     $this->compiler = $compiler;
     $this->api = $api;
 }
예제 #2
0
 /**
  * Configure command.
  */
 public function configure()
 {
     parent::configure();
     $this->addArgument('name', InputArgument::OPTIONAL, 'Repository name')->addArgument('description', InputArgument::OPTIONAL, 'Repository description');
 }
예제 #3
0
 /**
  * Configure command.
  */
 public function configure()
 {
     parent::configure();
     $this->addArgument('name', InputArgument::OPTIONAL, 'Repository name')->addArgument('github_username', InputArgument::OPTIONAL, 'Github username');
 }
예제 #4
0
 /**
  * Configure the command options.
  */
 protected function configure()
 {
     parent::configure();
     $this->addOption('dev', 'd', InputOption::VALUE_NONE, 'If set, dev-master branch of package will be installed');
 }
예제 #5
0
 /**
  * Configure the command options.
  */
 protected function configure()
 {
     parent::configure();
     $this->addOption('output-file', 'o', InputOption::VALUE_REQUIRED, 'If set, config/services.php will not be changed and only shows result on standard output');
 }