Skip to content

Commit

Permalink
Merge pull request #50 from edersoares/alias
Browse files Browse the repository at this point in the history
Adds aliases to plug and play commands
  • Loading branch information
edersoares authored Feb 7, 2024
2 parents f442ad7 + a2994d2 commit 92a00aa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Commands/AddCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function configure(): void
{
parent::configure();

$this->naming('plug-and-play:add');
$this->naming('plug-and-play:add', 'pp:add');
$this->setDescription('Add a required package to install using plug and play plugin');
$this->addArgument('package', InputArgument::REQUIRED, 'Package to add in plug and play dependencies');
$this->addArgument('version', InputArgument::OPTIONAL, 'Version of the package', '*');
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/DumpAutoloadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected function configure(): void
{
parent::configure();

$this->naming('plug-and-play:dump');
$this->naming('plug-and-play:dump', 'pp:dump');
$this->setDescription('Dumps the autoloader with plug and play dependencies');
}
}
2 changes: 1 addition & 1 deletion src/Commands/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected function configure(): void
{
parent::configure();

$this->naming('plug-and-play:init');
$this->naming('plug-and-play:init', 'pp:init');
$this->setDescription('Initialize plug and play plugin');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected function configure(): void
{
parent::configure();

$this->naming('plug-and-play:install');
$this->naming('plug-and-play:install', 'pp:install');
$this->setDescription('Installs the project dependencies from the plug-and-play.lock file if present, or falls back on the plug-and-play.json');
}
}
2 changes: 1 addition & 1 deletion src/Commands/ResetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected function configure(): void
{
parent::configure();

$this->naming('plug-and-play:reset');
$this->naming('plug-and-play:reset', 'pp:reset');
$this->setDescription('Reset plug and play files');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected function configure(): void
{
parent::configure();

$this->naming('plug-and-play:update');
$this->naming('plug-and-play:update', 'pp:update');
$this->setDescription('Updates your dependencies to the latest version according to plug-and-play.json, and updates the plug-and-play.lock file');
}
}

0 comments on commit 92a00aa

Please sign in to comment.