(cmd *cobra.Command, f *Flag, value *bool, defaultValue *bool, isUpdate bool)
| 195 | } |
| 196 | |
| 197 | func askBoolFlag(cmd *cobra.Command, f *Flag, value *bool, defaultValue *bool, isUpdate bool) error { |
| 198 | if shouldAsk(cmd, f, isUpdate) { |
| 199 | if err := askBool(f, value, defaultValue); err != nil { |
| 200 | return err |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | return nil |
| 205 | } |
| 206 | |
| 207 | func askIntFlag(cmd *cobra.Command, f *Flag, value *int, defaultValue *string, isUpdate bool) error { |
| 208 | if shouldAsk(cmd, f, isUpdate) { |