jthegedus / asdf-gcloud

☁️ GCloud CLI (Google Cloud SDK) plugin for asdf version manager. Pin gcloud versions for each project!
https://asdf-vm.com
MIT License
55 stars 22 forks source link

feat: support CLOUDSDK_CONFIG env var #54

Closed gullitmiranda closed 2 years ago

gullitmiranda commented 2 years ago

Add support to use the env CLOUDSDK_CONFIG to find .default-cloud-sdk-components file to have the same behaviour as gcloud SDK.

Types of changes

Usage examples

export CLOUDSDK_CONFIG="$HOME/.config/gcloud"
echo 'kubectl' >> $CLOUDSDK_CONFIG/.default-cloud-sdk-components
asdf plugin add gcloud
asdf install gcloud latest

Checklist:

jthegedus commented 2 years ago

Thanks