Skip to content

Commit

Permalink
Remove unnecessary project info in welcome command
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Dec 11, 2023
1 parent 08168fb commit 0148edc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Command/Environment/EnvironmentListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,12 @@ protected function execute(InputInterface $input, OutputInterface $output)

$refresh = $input->hasOption('refresh') && $input->getOption('refresh');

$project = $this->getSelectedProject();
$this->stdErr->writeln(sprintf('Environments in the project %s:', $this->api()->getProjectLabel($project)));

$progress = new ProgressMessage($output);
$progress->showIfOutputDecorated('Loading environments...');

$project = $this->getSelectedProject();
$environments = $this->api()->getEnvironments($project, $refresh ? true : null);

$progress->done();
Expand Down Expand Up @@ -219,8 +221,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
return 0;
}

$this->stdErr->writeln("Your environments are: ");

$table->render($this->buildEnvironmentRows($tree), $this->tableHeader, $this->defaultColumns);

if (!$this->currentEnvironment) {
Expand Down
6 changes: 0 additions & 6 deletions src/Command/WelcomeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ private function defaultWelcome()
*/
private function welcomeForLocalProjectDir(Project $project)
{
$projectUri = $project->getLink('#ui');
$this->stdErr->writeln("Project title: <info>{$project->title}</info>");
$this->stdErr->writeln("Project ID: <info>{$project->id}</info>");
$this->stdErr->writeln("Project dashboard: <info>$projectUri</info>\n");

// Show the environments.
$this->runOtherCommand('environments', [
'--project' => $project->id,
]);
Expand Down

0 comments on commit 0148edc

Please sign in to comment.