SelectAllFlagSet returns a flagset with the --all flag
(what string)
| 126 | |
| 127 | // SelectAllFlagSet returns a flagset with the --all flag |
| 128 | func SelectAllFlagSet(what string) *pflag.FlagSet { |
| 129 | flagSet := &pflag.FlagSet{} |
| 130 | flagSet.Bool("all", false, fmt.Sprintf("select all %s fields", what)) |
| 131 | return flagSet |
| 132 | } |
| 133 | |
| 134 | // UnsetFlagSet returns a flagset with the --unset flag |
| 135 | func UnsetFlagSet() *pflag.FlagSet { |
no outgoing calls
no test coverage detected