feat: streamline cli command output styles

This commit is contained in:
Björn Fromme
2025-04-25 08:16:07 +02:00
parent d9ab2a6e1f
commit 8d1edc3da0
2 changed files with 10 additions and 2 deletions
+4
View File
@@ -7,6 +7,7 @@ use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
#[AsCommand(name: 'app:crypto:generate-keys', description: 'Generate keypair for encryption')]
class GenerateKeysCommand extends Command
@@ -20,6 +21,9 @@ class GenerateKeysCommand extends Command
{
(new KeyPair())->generate($this->path.'/private.key', $this->path.'/public.key');
$io = new SymfonyStyle($input, $output);
$io->success('Generated keypair in '.$this->path);
return Command::SUCCESS;
}
}