Skip to content

Commit

Permalink
SshCommand: respect -v(erbosity) option
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Jul 24, 2023
1 parent e071ce7 commit cced6f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Command/SshCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$slices = array_unique(array_values($this->client->getDbList()));
$processArgs = ['ssh', '-N'];

if ($output->isVerbose()) {
$processArgs[] = '-v';
} elseif ($output->isVeryVerbose()) {
$processArgs[] = '-vv';
} elseif ($output->isDebug()) {
$processArgs[] = '-vvv';
}

foreach ($slices as $slice) {
$processArgs[] = '-L';
$arg = $this->client->getPortForSlice($slice).":$slice.$host:3306";
Expand Down

0 comments on commit cced6f1

Please sign in to comment.