Explicitly define application commands

This commit is contained in:
Joseph Bielawski
2023-09-12 16:27:07 +02:00
committed by Jerry Ma
parent 52430cbdde
commit fa0740f216
3 changed files with 31 additions and 23 deletions

View File

@@ -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

View File

@@ -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