Fix issue with setting set-by

This commit is contained in:
Phillip Wittrock
2020-01-02 15:36:54 -08:00
parent ac9b0a3e9e
commit e0b766ee46
2 changed files with 5 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ func NewSetRunner(parent string) *SetRunner {
}
fixDocs(parent, c)
r.Command = c
c.Flags().StringVar(&r.Perform.SetBy, "set-by", "",
"annotate the field with who set it")
c.Flags().StringVar(&r.Perform.Description, "description", "",
"annotate the field with a description of its value")
return r
}

View File

@@ -34,6 +34,7 @@ func (s *PerformSetters) Filter(input []*yaml.RNode) ([]*yaml.RNode, error) {
Name: s.Name,
Value: s.Value,
Description: s.Description,
SetBy: s.SetBy,
}
if err := input[i].PipeE(p); err != nil {
return nil, err