An interactive CLI utility written in Go to select an OpenStack cloud from your clouds.yaml and automatically export it to your shell environment.
- Parses
~/.config/openstack/clouds.yaml - Interactive cloud selection using
promptui - Outputs
export OS_CLOUD=<selected>to stdout - Updates
.zshrcwith the selected cloud - Works on macOS and Linux
git clone https://github.com/m-mansoorali/cloudselect.git
cd cloudselect
go build -o cloudselect./cloudselect
eval $(./cloudselect 2>/dev/null | grep "^export OS_CLOUD")Or open a new terminal after sourcing .zshrc
• Go 1.20+ • promptui • yaml.v3
Select Cloud Name:
dev
staging
prod
export OS_CLOUD=dev
Updated ~/.zshrc: export OS_CLOUD="dev"
Run 'source ~/.zshrc' or open a new terminal to apply changes.