From c0eb2029919e7e49e50e238db96c1bfc0a810237 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 22 Dec 2017 14:28:40 +0100 Subject: [PATCH] Add a description to the autocomplete command (#1472) * Add a description to the autocomplete command * updated changelog * fixed CS --- CHANGELOG.md | 5 ++++- src/Console/AutocompleteCommand.php | 15 ++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b6e4227..20c4d9a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ ## master [v6.0.5...master](https://github.com/deployphp/deployer/compare/v6.0.5...master) +### Added +- Added a description to the autocomplete command [#1472] + ### Fixed - fix within() to also restore the working-path when the given callback throws a Exception [#1463] @@ -338,7 +341,7 @@ - Fixed typo3 recipe - Fixed remove of shared dir on first deploy - +[#1472]: https://github.com/deployphp/deployer/pull/1472 [#1463]: https://github.com/deployphp/deployer/pull/1463 [#1455]: https://github.com/deployphp/deployer/pull/1455 [#1452]: https://github.com/deployphp/deployer/pull/1452 diff --git a/src/Console/AutocompleteCommand.php b/src/Console/AutocompleteCommand.php index f4ddd730..57a40f88 100644 --- a/src/Console/AutocompleteCommand.php +++ b/src/Console/AutocompleteCommand.php @@ -17,14 +17,15 @@ use Symfony\Component\Console\Output\OutputInterface; */ class AutocompleteCommand extends Command { - public function __construct() + /** + * {@inheritDoc} + */ + protected function configure() { - parent::__construct('autocomplete'); - $this->addOption( - '--install', - null, - InputOption::VALUE_NONE - ); + $this + ->setName('autocomplete') + ->setDescription('Install command line autocompletion capabilities') + ->addOption('--install', null, InputOption::VALUE_NONE); } /**