Implement commands
This commit is contained in:
17
app/Console/TestCommand.php
Normal file
17
app/Console/TestCommand.php
Normal 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!');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user