whalebrew/whalebrew

whalebrew doesn't accept stdin

Closed this issue · 2 comments

I would like to be able to script uninstalling packages with whalebrew. I have tried this:

~ ❯ whalebrew install whalebrew/terraform
Unable to find image 'whalebrew/terraform' locally
Using default tag: latest
latest: Pulling from whalebrew/terraform
c9b1b535fdd9: Already exists
2e6efbb09be4: Pull complete
d5eeca0eed63: Pull complete
6c9147d76a12: Pull complete
5241a1b707ee: Pull complete
b387ed038821: Pull complete
Digest: sha256:75f2d0e6f0c38cc05e7345361164fa7713ff1bb6b5d62cf32d2e777361f78dea
Status: Downloaded newer image for whalebrew/terraform:latest
docker.io/whalebrew/terraform:latest
🐳  Installed whalebrew/terraform to /usr/local/bin/terraform
~ ❯ which terraform
/usr/local/bin/terraform
~ ❯ terraform
Terraform v0.12.23
~ ❯ whalebrew uninstall terraform
This will permanently delete '/usr/local/bin/terraform'. Are you sure? (y/n) [n]: ^C
~ ❯ echo "y"
y
~ ❯ echo "y" | whalebrew uninstall terraform
This will permanently delete '/usr/local/bin/terraform'. Are you sure? (y/n) [n]: %                  ~ ❯
~ ❯ whalebrew list
COMMAND         IMAGE
terraform       whalebrew/terraform

Related to this issue with the prompter package: Songmu/prompter#6