(cmd *cobra.Command, f *Flag, value interface{}, options []string, defaultValue *string, isUpdate bool)
| 212 | } |
| 213 | |
| 214 | func selectFlag(cmd *cobra.Command, f *Flag, value interface{}, options []string, defaultValue *string, isUpdate bool) error { |
| 215 | if shouldAsk(cmd, f, isUpdate) { |
| 216 | return _select(f, value, options, defaultValue, isUpdate) |
| 217 | } |
| 218 | |
| 219 | return nil |
| 220 | } |
| 221 | |
| 222 | func pickFlag(cmd *cobra.Command, f *Flag, result *string, fn pickerOptionsFunc, isUpdate bool) error { |
| 223 | if shouldAsk(cmd, f, isUpdate) { |