Skip to content
Snippets Groups Projects
Commit ed779f3b authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add a name for the test command

And print a newline at the end
parent 7987aaf7
No related branches found
No related tags found
No related merge requests found
Pipeline #105577 passed
...@@ -11,6 +11,8 @@ use Symfony\Component\Console\Output\OutputInterface; ...@@ -11,6 +11,8 @@ use Symfony\Component\Console\Output\OutputInterface;
class TestCommand extends Command class TestCommand extends Command
{ {
protected static $defaultName = 'dbp:my-custom-command';
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
...@@ -25,7 +27,7 @@ class TestCommand extends Command ...@@ -25,7 +27,7 @@ class TestCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
$argument = $input->getArgument('argument'); $argument = $input->getArgument('argument');
$output->write($argument); $output->writeln($argument);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment