joyent / kosh

Second-generation shell for accessing the Conch API
Mozilla Public License 2.0
2 stars 5 forks source link

Fix KOSH_URL environment variable #79

Closed perigrin closed 3 years ago

perigrin commented 3 years ago

When we added support again for KOSH_ENV we accidentally broken support for KOSH_URL being set by the environment. The feature we were relying upon didn't work the way we thought and our tests didn't expose that properly. This restores the expected behavior that if KOSH_URL is set that value is taken, otherwise the value of KOSH_ENV determines the URL used ... or failing that we default to production.

Additionally we add CONCH_* environment variable aliases, and sketch in some basic documentation to make golint happier.