first commit

This commit is contained in:
编码猿
2024-09-27 01:06:04 +08:00
commit cbed24c40d
205 changed files with 8732 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php declare(strict_types=1);
namespace App\Console\Command;
use Swoft\Console\Annotation\Mapping\Command;
use Swoft\Console\Annotation\Mapping\CommandMapping;
use Swoft\Console\Helper\Show;
use Swoft\Console\Input\Input;
/**
* Class DemoCommand
*
* @Command()
*/
class DemoCommand
{
/**
* @CommandMapping()
* @param Input $input
*/
public function test(Input $input): void
{
Show::prettyJSON([
'args' => $input->getArgs(),
'opts' => $input->getOptions(),
]);
}
}