| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class LogfileAddCommand extends InventorioCommand |
||
| 13 | { |
||
| 14 | protected static $defaultName = 'logfile:add'; |
||
| 15 | protected static $defaultDescription = 'Add a logfile to the remote console'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @inheritDoc |
||
| 19 | */ |
||
| 20 | protected function configure(): void |
||
| 21 | { |
||
| 22 | parent::configure(); |
||
| 23 | |||
| 24 | $this |
||
| 25 | ->addArgument('name', InputArgument::REQUIRED, 'A descriptive name for the log file') |
||
| 26 | ->addArgument('file', InputArgument::REQUIRED, 'The logfile (absolute path)'); |
||
| 27 | } |
||
| 28 | |||
| 29 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 48 | } |
||
| 49 | } |
||
| 50 |