mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Remove motd for lint-config command
This commit is contained in:
parent
471df00ea3
commit
d495455902
@ -13,6 +13,8 @@ use Symfony\Component\Yaml\Yaml;
|
|||||||
#[AsCommand('dev:lint-config', 'Lint configuration file format', ['dev:sort-config'])]
|
#[AsCommand('dev:lint-config', 'Lint configuration file format', ['dev:sort-config'])]
|
||||||
class LintConfigCommand extends BaseCommand
|
class LintConfigCommand extends BaseCommand
|
||||||
{
|
{
|
||||||
|
protected bool $no_motd = true;
|
||||||
|
|
||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
$checkOnly = $this->input->getOption('check');
|
$checkOnly = $this->input->getOption('check');
|
||||||
@ -37,6 +39,9 @@ class LintConfigCommand extends BaseCommand
|
|||||||
return static::VALIDATION_ERROR;
|
return static::VALIDATION_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$hasChanges) {
|
||||||
|
$this->output->writeln('<info>No changes.</info>');
|
||||||
|
}
|
||||||
return static::SUCCESS;
|
return static::SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user