shell-plugins
shell-plugins copied to clipboard
Add Google Cloud Platform (gcloud) shell plugin
Summary
- Adds a new shell plugin for Google Cloud Platform with support for
gcloud,gsutil, andbqCLI tools - Credentials are provisioned via a temporary JSON file with
GOOGLE_APPLICATION_CREDENTIALS, plus automaticCLOUDSDK_CORE_PROJECTandCLOUDSDK_CORE_ACCOUNTresolution from the credential - Imports from
~/.config/gcloud/application_default_credentials.jsonand theGOOGLE_APPLICATION_CREDENTIALSenv var - Supports both
service_accountandauthorized_usercredential types
Test plan
- [x]
make gcloud/validate— all checks pass - [x]
make test— gcloud tests pass (17 scenarios covering provisioner, importer, and NeedsAuth) - [x]
make gcloud/build— builds and installs locally - [x]
op plugin init gcloud— end-to-end verification (requires 1Password CLI)
@mrjones2014 is this repo still being actively maintained? Just pinging since you were the last to merge a PR.
To be honest I haven't been able to get anything merged in a long time so I've stopped using Shell Plugins in my own setup.
I only really used the GitHub one so I just implemented it in Nix+bash directly in my dotfiles. Its actually a bit more flexible that way anyway.
https://github.com/mrjones2014/dotfiles/blob/03cd7e382af024016670e09f6c7d3fadb0b5ffb6/home-manager/components/_1password-shell.nix#L24-L44