cli icon indicating copy to clipboard operation
cli copied to clipboard

Opt-out of old-school windows ENV flags

Open codefromthecrypt opened this issue 3 years ago • 0 comments

Checklist

  • [x] Are you running the latest v2 release? The list of releases is here.
  • [x] Did you check the manual for your release? The v2 manual is here
  • [x] Did you perform a search about this feature? Here's the Github guide about searching.

What problem does this solve?

Env variables like %FOO% are old-school, like cmd.exe. Those using powershell will use normal env conventions like $FOO. Right now, the prefix/suffic logic is hard-coded based on runtime.GOOS and can't be easily overridden.

Solution description

Assuming some want the %FOO%, a global flag to undo it without having to override the entire stringer function.

Describe alternatives you've considered

I've tried string replacement to undo this with a wrapped stringer function. Another option is to let it slide, but I prefer the help/markdown to be in powershell syntax.

codefromthecrypt avatar Jul 12 '21 05:07 codefromthecrypt