(value *string, defaultValue string, filename string, infoFn func(), tempFileFn func(string))
| 97 | } |
| 98 | |
| 99 | func openCreateEditor(value *string, defaultValue string, filename string, infoFn func(), tempFileFn func(string)) error { |
| 100 | out, err := prompt.CaptureInputViaEditor( |
| 101 | defaultValue, |
| 102 | filename, |
| 103 | infoFn, |
| 104 | tempFileFn, |
| 105 | ) |
| 106 | |
| 107 | if err != nil { |
| 108 | return handleInputError(err) |
| 109 | } |
| 110 | |
| 111 | *value = out |
| 112 | |
| 113 | return nil |
| 114 | } |
| 115 | |
| 116 | func openUpdateEditor(i commandInput, value *string, defaultValue string, filename string) error { |
| 117 | isRequired := isInputRequired(i, true) |
no test coverage detected