Skip to content

Commit

Permalink
Fixed composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Voronoy committed Jun 11, 2016
1 parent 3c5fc17 commit 5721d24
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
16 changes: 15 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
{
"name": "yvoronoy/magento2-bash-completion",
"description": "Magento2 Bash Completion Generator",
"type": "magento2-module",
"require": {
"php": "~5.5.0|~5.6.0|~7.0.0",
"phpspec/phpspec": "^2.5",
"magento/framework": "^100.0",
"phpmd/phpmd": "2.3.*"
},
"license": "MIT",
"authors": [
{
"name": "Yaroslav Voronoy",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Voronoy\\BashCompletion\\":"src"
}
},
"files": [
"src/registration.php"
]
},
"repositories": {
"magento": {
Expand Down
5 changes: 3 additions & 2 deletions src/Console/Command/BashCompletionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$description = new ApplicationDescription($this->getApplication());
$this->commandCollection->setItems($description->getCommands());
$result = $this->bashCompletion->generateCompletionList(
$input->getArgument(self::INPUT_ARG_NAME));
$input->getArgument(self::INPUT_ARG_NAME)
);

return $output->writeln($result);
}
}
}

0 comments on commit 5721d24

Please sign in to comment.