feat: streamline cli command output styles
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user