setName('scheme:backups') ->setDescription('List all backup tables'); } protected function execute(Input $input, Output $output) { $tables = Db::query("SHOW TABLES LIKE 'ul_backup%'"); foreach ($tables as $t) { $output->writeln(array_values($t)[0]); } } }