Skip to content

Commit

Permalink
add alias on legacy command and renamed it
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Aug 4, 2024
1 parent a3003ad commit 670500f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Changed-20240804-071047.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Changed
body: give a chance to keep migration from v3 to v4 still working, but consider legacy commands as deprecated
time: 2024-08-04T07:10:47.946091183Z
3 changes: 2 additions & 1 deletion src/Console/Command/ManifestBuild.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
*/
final class ManifestBuild extends Command
{
public const NAME = 'manifest:build';
public const NAME = 'build';

private const HELP = <<<'HELP'
The <info>%command.name%</info> command will generate a manifest of your application.
Expand Down Expand Up @@ -81,6 +81,7 @@ protected function configure(): void
];

$this->setName(self::NAME)
->setAliases(['manifest:' . self::NAME]) // give a chance to keep migration from v3 to v4 still working (but consider it as @deprecated)
->setDescription('Creates a manifest of your software components and dependencies.')
->setDefinition(
new InputDefinition(
Expand Down
3 changes: 2 additions & 1 deletion src/Console/Command/ManifestStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/
final class ManifestStub extends Command
{
public const NAME = 'manifest:stub';
public const NAME = 'stub';

private const HELP = <<<'HELP'
The <info>%command.name%</info> command will generate a stub of your manifest application.
Expand Down Expand Up @@ -68,6 +68,7 @@ protected function configure(): void
];

$this->setName(self::NAME)
->setAliases(['manifest:' . self::NAME]) // give a chance to keep migration from v3 to v4 still working (but consider it as @deprecated)
->setDescription('Generates a stub for your manifest application.')
->setDefinition(
new InputDefinition(
Expand Down

0 comments on commit 670500f

Please sign in to comment.