Open rsgalloway opened 2 weeks ago
this could just be an alias for envstack --trace
:
$ alias whichenv='envstack -t'
$ whichenv HELLO
HELLO: /path/to/stack.env
but what if we didn't know where an env var was defined? It would search all the env stacks to find it and print the path to the .env file:
$ whichenv FOO
/path/to/thing.env
or the env stack name:
$ whichenv FOO
thing
create a
whichenv
executable that wrapsenvstack -t
: