Closed aarongorka closed 3 years ago
Currently it would not be possible. example
can be passed to the command envfile
which generates a .env
file with the example values. :)
https://github.com/flemay/envvars/blob/master/cmd/envfile.go#L32
What I think would be best is to have a list of accepted values. What do you think @aarongorka ?
My example is probably not very good, I was thinking more of very dissimilar examples but not necessarily a list of accepted values. An application I am working with accepts both files and directories as input so I wanted to have both dir/file.yml
and dir/
as examples.
Some options I thought of;
example
and examples
? default
and examples
?)desc
fieldIf 2. is not a good idea I will just do 3. and we can close this issue.
default
would be confusing as in people may think that it would be that value if none is provided whereas I use example values to generate .env
file only if you pass example
. and having example
along with examples
will be confusing too because both will be for different purpose while 1 being just the plural of the other.desc
would be a good place where to start.That being said, wonder if there is another way to generate the example or maybe generating the example file is not required?
It would be nice to pass a list of examples instead of being limited to one.