| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 36 | { |
||
| 37 | $registryName = $input->getArgument('registry-name'); |
||
| 38 | $registryUrl = $input->getArgument('registry-url'); |
||
| 39 | //Add registry & dump to config file |
||
| 40 | $this->getManager()->addRegistry($registryName, $registryUrl); |
||
| 41 | $this->getManager()->dumpRepositoriesToFile(ConfigPath::getUserConfigFile()); |
||
| 42 | |||
| 43 | $output->writeln("<info>Add registry [{$registryName}] success</info>"); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |