app-config icon indicating copy to clipboard operation
app-config copied to clipboard

Extend environment support for "soft aliases"

Open joelgallant opened this issue 4 years ago • 3 comments

Meaning specific environments that are very similar to another, with only a few values different

  • Explore option to $extends w/ a different environment than current one
  • Explore "combined" environment (ie. test.dev), which merges two environments, allowing for holes in them individually

joelgallant avatar Feb 13 '21 20:02 joelgallant

Going to say this should be done with #131

joelgallant avatar Apr 09 '21 00:04 joelgallant

I think there's still value in a qa+staging or qa|staging syntax in $env. Reopening.

Partially, I think we should reserve this syntax by adding a deprecation warning for environment names with special characters (+, |, & should suffice).

joelgallant avatar Jun 20 '21 01:06 joelgallant

Note that it's possible to do this (now) with at the root level of the app-config file:

$env:
  default: {}
  qa:
    $extendsSelf:
      env: staging
      select: .

    # any qa overrides go here

joelgallant avatar Jun 20 '21 02:06 joelgallant