Skip to content

Commit

Permalink
Remove session:switch command suggestion when not relevant in the log…
Browse files Browse the repository at this point in the history
…in command
  • Loading branch information
pjcdawkins committed Jun 25, 2020
1 parent 9d6cd95 commit b44314d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/CommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ public function login()
if ($this->output && $this->input && $this->input->isInteractive()) {
if ($this->config()->getSessionId() !== 'default' || count($this->api()->listSessionIds()) > 1) {
$this->stdErr->writeln(sprintf('The current session ID is: <info>%s</info>', $this->config()->getSessionId()));
$this->stdErr->writeln(sprintf('To switch sessions, run: <info>%s session:switch</info>', $this->config()->get('application.executable')));
if (!$this->config()->isSessionIdFromEnv()) {
$this->stdErr->writeln(sprintf('To switch sessions, run: <info>%s session:switch</info>', $this->config()->get('application.executable')));
}
$this->stdErr->writeln('');
}

Expand Down

0 comments on commit b44314d

Please sign in to comment.