Commit Graph

5 Commits

Author SHA1 Message Date
Will Roden 7bdb319cf1 move CloneWith() call into interpolate() 2020-05-16 09:35:03 +10:00
Rene Zbinden 7b000bd775 Add HelpValueFormatter as discussed in #60 (#61)
Fixes #60 .
2020-02-21 20:24:19 +11:00
Alec Thomas 73ecfde9b2 Automatically add envar to help.
See #57.
2020-02-19 15:52:02 +11:00
Alec Thomas 9a1f499155 Support for default values ${var=default} in interpolation variables. 2019-09-24 13:33:20 +10:00
Alec Thomas 1bb0c0b4b2 Support limited variable interpolation.
Kong supports limited variable interpolation into help strings, enum lists and
default values.

Variables are in the form:

    ${<name>}

Variables are set with the `Vars(map[string]string)` option. Undefined
variable references in the grammar will result in an error at construction
time.
2018-06-27 21:09:56 +10:00