| @@ 22-34 (lines=13) @@ | ||
| 19 | /** |
|
| 20 | * @inheritDoc |
|
| 21 | */ |
|
| 22 | protected function configure() |
|
| 23 | { |
|
| 24 | $this->setName('alias'); |
|
| 25 | $this->setDescription('Defines an alias for a package to be used by crap.'); |
|
| 26 | $this->addArgument('alias', InputArgument::REQUIRED, 'Package alias'); |
|
| 27 | $this->addArgument('package', InputArgument::REQUIRED, 'Package'); |
|
| 28 | $this->addOption( |
|
| 29 | 'dry-run', |
|
| 30 | null, |
|
| 31 | InputOption::VALUE_NONE, |
|
| 32 | 'Run command without writing to your `crap.json`, useful for testing.' |
|
| 33 | ); |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * @inheritDoc |
|
| @@ 19-30 (lines=12) @@ | ||
| 16 | /** |
|
| 17 | * @inheritDoc |
|
| 18 | */ |
|
| 19 | protected function configure() |
|
| 20 | { |
|
| 21 | $this->setName('unalias'); |
|
| 22 | $this->setDescription('Unset an existing crap alias.'); |
|
| 23 | $this->addArgument('alias', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'Package alias(es)'); |
|
| 24 | $this->addOption( |
|
| 25 | 'dry-run', |
|
| 26 | null, |
|
| 27 | InputOption::VALUE_NONE, |
|
| 28 | 'Run command without writing to your `crap.json`, useful for testing.' |
|
| 29 | ); |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @inheritDoc |
|