Skip to content

Commit

Permalink
Show the SSH URL in alias list.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshirohit100 committed Jan 17, 2025
1 parent 8edc651 commit 4e73a78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Command/Remote/AliasListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'Application',
'Environment Alias',
'Environment UUID',
'SSH URL',
]);

$siteId = $customerApplication->hosting->id;
Expand All @@ -51,6 +52,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$customerApplication->name,
$alias,
$environment->uuid,
$environment->sshUrl,
]);
}

Expand Down
4 changes: 3 additions & 1 deletion tests/phpunit/src/Commands/Remote/AliasesListCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public function testRemoteAliasesListCommand(): void
// Assert.
$output = $this->getDisplay();

$this->assertStringContainsString('| Sample application 1 | devcloud2.dev | 24-a47ac10b-58cc-4372-a567-0e02b2c3d470 |', $output);
$this->assertStringContainsString('| Application | Environment Alias | Environment UUID | SSH URL', $output);

$this->assertStringContainsString('| Sample application 1 | devcloud2.dev | 24-a47ac10b-58cc-4372-a567-0e02b2c3d470 | [email protected]', $output);
}
}

0 comments on commit 4e73a78

Please sign in to comment.