(cmd *cobra.Command, f *Flag, value interface{}, defaultValue *string, isUpdate bool)
| 181 | } |
| 182 | |
| 183 | func askManyFlag(cmd *cobra.Command, f *Flag, value interface{}, defaultValue *string, isUpdate bool) error { |
| 184 | if shouldAsk(cmd, f, isUpdate) { |
| 185 | var strInput string |
| 186 | |
| 187 | if err := ask(f, &strInput, defaultValue, isUpdate); err != nil { |
| 188 | return err |
| 189 | } |
| 190 | |
| 191 | *value.(*[]string) = commaSeparatedStringToSlice(strInput) |
| 192 | } |
| 193 | |
| 194 | return nil |
| 195 | } |
| 196 | |
| 197 | func askBoolFlag(cmd *cobra.Command, f *Flag, value *bool, defaultValue *bool, isUpdate bool) error { |
| 198 | if shouldAsk(cmd, f, isUpdate) { |
no test coverage detected