Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 protected function configure()
 {
     $this->setName('analyse:dir')->setDescription('Iterates over a directory and runs the specified analysers.');
     parent::configure();
     $this->addOption('recursive', 'r', InputOption::VALUE_NONE, 'Iterate recursive over directory')->addOption('groupBy', 'g', InputOption::VALUE_REQUIRED, 'Group output by name or required version.', self::GROUP_BY_NAME)->addOption('sortBy', 'o', InputOption::VALUE_REQUIRED, 'Sort order of remaining files. Only takes effect while using --groupBy=n[ame]', FileFinderBuilder::SORT_BY_NAME)->addOption('listFilesOnly', null, InputOption::VALUE_NONE, 'Only list matched files and do not run analysis.')->addArgument('filters', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Filter', ['name:*.php']);
 }
Exemplo n.º 2
0
 protected function configure()
 {
     $this->setName('analyse:file')->setDescription('Analyse the requirements of a given file.');
     parent::configure();
 }