From ed779f3ba952190a5175f01d4dddb92f48397af2 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 29 Oct 2020 16:12:06 +0100
Subject: [PATCH] Add a name for the test command

And print a newline at the end
---
 src/Command/TestCommand.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Command/TestCommand.php b/src/Command/TestCommand.php
index aee7b69..61b7bf8 100644
--- a/src/Command/TestCommand.php
+++ b/src/Command/TestCommand.php
@@ -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;
     }
-- 
GitLab