setName('tag:delete')
->setDescription('delete a tag')
->addArgument(
'id',
InputOption::VALUE_REQUIRED,
'The ID of the tag that should be deleted',
);
}
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$this->systemTagManager->deleteTags($input->getArgument('id'));
$output->writeln('The specified tag was deleted');
return 0;
} catch (TagNotFoundException $e) {
$output->writeln('Tag not found');
return 1;
}
}
}