Implement commands

This commit is contained in:
Tim
2023-08-16 16:04:35 +02:00
parent 1ee5c1c992
commit f8d1c66934
17 changed files with 200 additions and 48 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace App\Console;
use Ardent\Undercurrent\Attribute\Command;
use Ardent\Undercurrent\Console\BaseCommand;
use Ardent\Undercurrent\Console\Output;
#[Command('app:test')]
class TestCommand extends BaseCommand
{
protected function run(Output $output): void
{
$output->printLine('Hello, command!');
}
}