addArgument( 'config', InputArgument::REQUIRED, 'Configuration file' ); } protected function execute(InputInterface $input, OutputInterface $output): int { $sio = new SymfonyStyle($input, $output); $sio->title('List backup entities'); try { $app = new App((string)$input->getArgument('config')); } catch (\Throwable $e) { $sio->error('Configuration error: ' . $e->getMessage()); return Command::FAILURE; } $sio->table( ['Description', 'Source', 'Destination'], $app->getConfig('backup') ); $sio->success("Done"); return Command::SUCCESS; } }