mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 15:55:39 +08:00
Explicitly define application commands
This commit is contained in:
committed by
Jerry Ma
parent
52430cbdde
commit
fa0740f216
@@ -13,7 +13,7 @@ use Symfony\Component\Console\Input\InputOption;
|
||||
use function Laravel\Prompts\confirm;
|
||||
use function Laravel\Prompts\text;
|
||||
|
||||
#[AsCommand('deploy', 'Deploy static-php-cli self to an .phar application')]
|
||||
#[AsCommand('deploy', 'Deploy static-php-cli self to an .phar application', [], true)]
|
||||
class DeployCommand extends BaseCommand
|
||||
{
|
||||
public function configure(): void
|
||||
|
||||
@@ -15,7 +15,7 @@ use Symfony\Component\Console\Input\InputArgument;
|
||||
/**
|
||||
* Modify config file: sort lib, ext, source by name.
|
||||
*/
|
||||
#[AsCommand('dev:sort-config', 'After config edited, sort it by alphabet', ['sort-config'])]
|
||||
#[AsCommand('dev:sort-config', 'After config edited, sort it by alphabet', ['sort-config'], true)]
|
||||
class SortConfigCommand extends BaseCommand
|
||||
{
|
||||
public function configure(): void
|
||||
|
||||
Reference in New Issue
Block a user