Add a description to the autocomplete command (#1472)

* Add a description to the autocomplete command

* updated changelog

* fixed CS
This commit is contained in:
Markus Staab 2017-12-22 14:28:40 +01:00 committed by Anton Medvedev
parent 46bb2c8598
commit c0eb202991
2 changed files with 12 additions and 8 deletions

View File

@ -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

View File

@ -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);
}
/**