| @@ 29-37 (lines=9) @@ | ||
| 26 | */ |
|
| 27 | class ExtractCommand extends ContainerAwareCommand |
|
| 28 | { |
|
| 29 | protected function configure() |
|
| 30 | { |
|
| 31 | $this |
|
| 32 | ->setName('translation:extract') |
|
| 33 | ->setDescription('Extract translations from source code.') |
|
| 34 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
| 35 | ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', false) |
|
| 36 | ->addOption('hide-errors', null, InputOption::VALUE_NONE, 'If we should print error or not'); |
|
| 37 | } |
|
| 38 | ||
| 39 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 40 | { |
|
| @@ 26-34 (lines=9) @@ | ||
| 23 | */ |
|
| 24 | class StatusCommand extends ContainerAwareCommand |
|
| 25 | { |
|
| 26 | protected function configure() |
|
| 27 | { |
|
| 28 | $this |
|
| 29 | ->setName('translation:status') |
|
| 30 | ->setDescription('Show status about your translations.') |
|
| 31 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
| 32 | ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', false) |
|
| 33 | ->addOption('json', null, InputOption::VALUE_NONE, 'If we should output in Json format'); |
|
| 34 | } |
|
| 35 | ||
| 36 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 37 | { |
|