Skip to content

Commit

Permalink
Fix post install link for DDEV users, closes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannielsen committed Sep 23, 2024
1 parent 42f7321 commit 530688a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed

- Support for arguments on custom Date fields
- Displaying Coilpack's Github link after installation with DDEV

## [1.4.0] - 2024-08-12

Expand Down
4 changes: 4 additions & 0 deletions src/Commands/CoilpackCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ protected function askForStar()

$command = array_key_exists(PHP_OS_FAMILY, $openUrlCommands) ? $openUrlCommands[PHP_OS_FAMILY] : null;

if (! empty($_ENV['DDEV_PROJECT_TYPE'] ?? '')) {
return $this->comment("It looks like you're using DDEV. We can't open the url directly but you can still star the repo by running `ddev launch $url`");

This comment has been minimized.

Copy link
@philipzaengle

philipzaengle Sep 25, 2024

Clever

}

if (! $command) {
$this->comment("Oops, this is embarrassing. \n We can't open the url on your operating system but you can still star the repo: $url");
}
Expand Down

0 comments on commit 530688a

Please sign in to comment.