env-select

v0.7.0

v0.7.0 Jul 13 2023 at 10:55 UTC

This should be the last release with major breaking changes. The config layout has changed dramatically in order to support planned (and unplanned) future features.

Breaking Changes

  • Removed vars config section. You can no longer provide mappings for single variables. Instead, define a set of profiles with single variables
    • This feature didn't provide any additional functionality, it was just a slight convenience at the cost of complexity both for users and code
  • Restructured profile config:
    • Renamed apps field to applications
    • Add new profiles and variables subfields
    • Overall, this means apps.app1.profile1.VARIABLE1 will now be applications.app1.profiles.profile1.variables.VARIABLE1
    • This is more tedious, but allows for current and future features to fit into the config

New Features

  • Profile inheritance - profiles can now extend other profiles, eliminating the need to copy-paste a bunch of common content between profiles

Other

  • es shell function definitions now use the full path to the env-select binary rather than relying on PATH
    • This eliminates the need to add env-select to the PATH, and also guarantees that the copy of env-select that is being executed by es is the one that generated that es definition in the first place