Add descriptions to commands

This commit is contained in:
Oliver Davies 2024-02-25 16:44:48 +00:00
parent 82900c719c
commit d6f04371eb
6 changed files with 14 additions and 0 deletions

View file

@ -8,6 +8,8 @@ use Symfony\Component\Filesystem\Filesystem;
abstract class AbstractCommand extends Command
{
protected static string $description;
public function __construct(
protected Filesystem $filesystem,
?string $name = null,
@ -17,6 +19,8 @@ abstract class AbstractCommand extends Command
protected function configure(): void
{
$this->setDescription(static::$description);
$this->addOption(
name: 'args',
shortcut: 'a',