Skip to content

ionrock/we

Folders and files

NameName
Last commit message
Last commit date
Nov 27, 2023
Aug 13, 2023
Aug 3, 2017
Aug 13, 2023
Sep 3, 2020
Sep 3, 2020
Sep 3, 2020
Feb 5, 2024
Sep 3, 2020
Dec 4, 2017
Nov 27, 2023
Nov 27, 2023
Sep 3, 2020
Nov 27, 2023
Aug 3, 2017
Feb 7, 2024
Feb 7, 2024

Repository files navigation

Withenv

Withenv takes YAML/JSON files and applies them to the environment prior to running a command. The idea is that rather than relying on shell variables being set, you can explicitly define what environment variables you want to use.

For example, here is some YAML that might be helpful when connecting to an OpenStack Cloud.

---
OS_USERNAME: user
OS_PASSWORD: secret
OS_URL: http://api.example.org/rest/api

You can then run commands (ie in Ansible for example) that read this information.

$ we -e test_user_creds.yml ansible-play install-app

See the Docs for info.

https://travis-ci.org/ionrock/we/builds