MCPcopy Create free account
hub / github.com/auth0/auth0-cli / openCreateEditor

Function openCreateEditor

internal/cli/input.go:99–114  ·  view source on GitHub ↗
(value *string, defaultValue string, filename string, infoFn func(), tempFileFn func(string))

Source from the content-addressed store, hash-verified

97}
98
99func 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
116func openUpdateEditor(i commandInput, value *string, defaultValue string, filename string) error {
117 isRequired := isInputRequired(i, true)

Callers 1

openEditorFlagFunction · 0.85

Calls 2

CaptureInputViaEditorFunction · 0.92
handleInputErrorFunction · 0.85

Tested by

no test coverage detected