(cmd *cobra.Command, f *Flag, value *string, isUpdate bool)
| 269 | } |
| 270 | |
| 271 | func askPasswordFlag(cmd *cobra.Command, f *Flag, value *string, isUpdate bool) error { |
| 272 | if shouldAsk(cmd, f, isUpdate) { |
| 273 | if err := askPassword(f, value, isUpdate); err != nil { |
| 274 | return err |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | return nil |
| 279 | } |
| 280 | |
| 281 | func openEditorFlag(cmd *cobra.Command, f *Flag, value *string, defaultValue string, filename string, infoFn func(), tempFileFn func(string), isUpdate bool) error { |
| 282 | if shouldAsk(cmd, f, false) { // Always open the editor on update. |
no test coverage detected