diff --git a/template/parse.go b/template/parse.go index 722b1fb3c..23ce3393a 100644 --- a/template/parse.go +++ b/template/parse.go @@ -60,6 +60,7 @@ func (r *rawTemplate) Template() (*Template, error) { } for k, rawV := range r.Variables { var v Variable + v.Key = k // Variable is required if the value is exactly nil v.Required = rawV == nil diff --git a/template/template.go b/template/template.go index 635e9c202..ffbde7ac9 100644 --- a/template/template.go +++ b/template/template.go @@ -70,6 +70,7 @@ type Push struct { // Variable represents a variable within the template type Variable struct { + Key string Default string Required bool }