Skip to content

Commit 41447c0

Browse files
committed
with setAliases()
1 parent 4ad092f commit 41447c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Console/Command/ProcessCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function __construct(
5454
protected function configure(): void
5555
{
5656
$this->setName('process');
57+
$this->setAliases(['p']);
5758
$this->setDescription('Upgrades or refactors source code with provided Rector rules');
5859
$this->setHelp(
5960
<<<'EOF'

src/Console/ConsoleApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function doRun(InputInterface $input, OutputInterface $output): int
8080
$tokens = $privatesAccessor->getPrivateProperty($input, 'tokens');
8181
$tokens = array_merge(['process'], $tokens);
8282
$privatesAccessor->setPrivateProperty($input, 'tokens', $tokens);
83-
} elseif ($commandName !== 'p' && ! $this->has($commandName)) {
83+
} elseif (! $this->has($commandName)) {
8484
$this->symfonyStyle->error(
8585
sprintf(
8686
'The following given path does not match any files or directories: %s%s',

0 commit comments

Comments
 (0)