Lines Matching refs:format
41 private $format;
62 ->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format')
80 <info>php %command.full_name% dirname --format=json</info>
96 $this->format = $input->getOption('format');
99 if ('github' === $this->format && !class_exists(GithubActionReporter::class)) {
100 throw new \InvalidArgumentException('The "github" format is only available since "symfony/console" >= 5.3.');
103 if (null === $this->format) {
104 // Autodetect format according to CI environment
105 $this->format = class_exists(GithubActionReporter::class) && GithubActionReporter::isGithubActionEnvironment() ? 'github' : 'txt';
159 switch ($this->format) {
167 throw new InvalidArgumentException(sprintf('The format "%s" is not supported.', $this->format));
285 if ($input->mustSuggestOptionValuesFor('format')) {