Open obbardc opened 4 years ago
Tried using map[string]interface{}
instead of map[string]string
for TemplateVars to have different types for key. But the parser (github.com/jessevdk/go-flags.Parser) is not parsing the value correctly
TemplateVars: map[string]interface {} [
"label": nil,
],
Currently variables imported through
-t
option are parsed as strings, it would be great to parse as bools if true or false.Consider the difference between the two recipes:
working:
it makes it potentially simpler to read using bools: