// NewSetRunner returns a command runner.
NewSetRunner returns a command runner.
// NewSetRunner returns a command runner .
func NewSetRunner(parent string) *SetRunner {
	r := &SetRunner{}
	c := &cobra.Command{
		Use:     "set DIR NAME --values [VALUE]",
		Args:    cobra.MinimumNArgs(2),
		Short:   commands.SetShort,
		Long:    commands.SetLong,
		Example: commands.SetExamples,
		PreRunE: r.preRunE,
		RunE:    r.runE,
	}
	runner.FixDocs(parent, c)
	r.Command = c
	c.Flags().StringArrayVar(&r.Values, "values", []string{},
		"optional flag, the values of the setter to be set to")
	c.Flags().StringVar(&r.SetBy, "set-by", "",
		"annotate the field with who set it")
	c.Flags().StringVar(&r.Description, "description", "",
		"annotate the field with a description of its value")
	c.Flags().StringVar(&setterVersion, "version", "",
		"use this version of the setter format")
	c.Flags().BoolVarP(&r.RecurseSubPackages, "recurse-subpackages", "R", false,
		"sets recursively in all the nested subpackages")
	c.Flags().MarkHidden("version")
	return r
}
func NewSetRunner ( parent string ) * SetRunner { r := & SetRunner { } c := & cobra . Command { Use : " " , Args : cobra . MinimumNArgs ( 2 ) , Short : commands . SetShort , Long : commands . SetLong , Example : commands . SetExamples , PreRunE : r . preRunE , RunE : r . runE , } runner . FixDocs ( parent , c ) r . Command = c c . Flags ( ) . StringArrayVar ( & r . Values , " " , [ ] string { } , " " ) c . Flags ( ) . StringVar ( & r . SetBy , " " , " " , " " ) c . Flags ( ) . StringVar ( & r . Description , " " , " " , " " ) c . Flags ( ) . StringVar ( & setterVersion , " " , " " , " " ) c . Flags ( ) . BoolVarP ( & r . RecurseSubPackages , " " , " " , false , " " ) c . Flags ( ) . MarkHidden ( " " ) return r }
NewSetRunner returns a command runner.
NewSetRunner returns a command runner .