cli icon indicating copy to clipboard operation
cli copied to clipboard

App commands should all accept `-e` option to set HANAMI_ENV

Open timriley opened this issue 3 years ago • 1 comments

timriley avatar Dec 20 '22 11:12 timriley

@timriley I'm torn.

Wouldn't this complicate the understanding and implementation of CLI? If we introduce -e it will create a matrix of possibilities: CLI argument vs ENV var.

ENV CLI Result
not set not set Apply default: development, unless running tests (default is test)
set not set Apply given ENV var
not set set Apply given CLI arg, but also force HANAMI_ENV value to propagate the choice
set set Who's gonna win?

This will be complicated to communicate and let people wrap their heads around.

jodosha avatar Dec 20 '22 14:12 jodosha