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;
class TestCommand extends Command
{
protected static $defaultName = 'dbp:my-custom-command';
public function __construct()
{
parent::__construct();
......@@ -25,7 +27,7 @@ class TestCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output)
{
$argument = $input->getArgument('argument');
$output->write($argument);
$output->writeln($argument);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment