| @@ 45-60 (lines=16) @@ | ||
| 42 | ||
| 43 | class NotifyClosingCfps extends Command |
|
| 44 | { |
|
| 45 | protected function configure() |
|
| 46 | { |
|
| 47 | $this->setName("notifyClosingCfps") |
|
| 48 | ->setDescription("Notify about CfPs that close within 24 hours") |
|
| 49 | ->setDefinition(array( |
|
| 50 | new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
| 51 | )) |
|
| 52 | ->setHelp(<<<EOT |
|
| 53 | Notify about CfPs that are closing within 24 hours |
|
| 54 | ||
| 55 | Usage: |
|
| 56 | ||
| 57 | <info>callingallpapers notifyClosingCfp</info> |
|
| 58 | EOT |
|
| 59 | ); |
|
| 60 | } |
|
| 61 | ||
| 62 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 63 | { |
|
| @@ 51-69 (lines=19) @@ | ||
| 48 | ||
| 49 | class ParseEvents extends Command |
|
| 50 | { |
|
| 51 | protected function configure() |
|
| 52 | { |
|
| 53 | $this->setName("parseCfPs") |
|
| 54 | ->setDescription("Retrieve CfPs and parse them") |
|
| 55 | ->setDefinition(array( |
|
| 56 | new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
| 57 | )) |
|
| 58 | ->setHelp(<<<EOT |
|
| 59 | Get details about CfPs from different sources |
|
| 60 | ||
| 61 | Usage: |
|
| 62 | ||
| 63 | <info>callingallpapers parseCfPs 2015-02-23<env></info> |
|
| 64 | ||
| 65 | If you ommit the date the current date will be used instead |
|
| 66 | <info>callingallpapers parseCfPs<env></info> |
|
| 67 | EOT |
|
| 68 | ); |
|
| 69 | } |
|
| 70 | ||
| 71 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 72 | { |
|