Created
June 22, 2023 17:48
-
-
Save jjb/f62c322cd3c21deab9b45c3410775aab to your computer and use it in GitHub Desktop.
Shipyard Shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# usage | |
# shipyard-shell PRNUMBER SERVICENAME | |
# shipyard-shell 6187 postgres | |
# shipyard-shell 6187 api | |
pr=$1 | |
service=$2 | |
identifier=`shipyard get environments | grep pr$pr | xargs | cut -w -f1` # xargs to remove leading and trailing whitespace | |
shipyard exec --env $identifier --service $service -- bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment