robinovitch61 / wander

A terminal app/TUI for HashiCorp Nomad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using NOMAD_ config prefixes instead of WANDER_ config prefixes to match nomad cli

robinovitch61 opened this issue · comments

Inspired by comment on https://lobste.rs/s/b67kmz/wander_terminal_app_tui_for_hashicorp

Why the choice to use different variables than the nomad cli tool itself?

At one point I had conflicts between them when wanting to point at a different cluster, so I decided to make an explicit config set specifically for wander. I can see how it might be a bit annoying given that 90% of users will have the same values for NOMAD_ADDR/WANDER_ADDR and NOMAD_TOKEN/WANDER_TOKEN.

I may want to change this in a backwards-compatible way so NOMAD_ prefixes are the recommended way. Maybe print a warning that the config names have changed and will be phased out in a later release.

Alternatively, maybe WANDER_ prefixes are better as they're explicitly for wander only and there will never be confusion with the CLI.

This would allow wander to work ootb for my users instead of wrapping with wander -a $NOMAD_ADDR etc.

@foozmeat I'll get this released asap, thanks for the feedback!

This should be fixed in v0.3.1 which is releasing now