MCPcopy Create free account
hub / github.com/cli/cli / MarkdownEditor

Method MarkdownEditor

internal/prompter/prompter.go:52–52  ·  view source on GitHub ↗

MarkdownEditor prompts the user to edit a markdown document in an editor. If blankAllowed is true, the user can skip the editor and an empty string will be returned.

(prompt string, defaultValue string, blankAllowed bool)

Source from the content-addressed store, hash-verified

50 // If blankAllowed is true, the user can skip the editor and an empty string
51 // will be returned.
52 MarkdownEditor(prompt string, defaultValue string, blankAllowed bool) (string, error)
53}
54
55func New(editorCmd string, io *iostreams.IOStreams) Prompter {

Callers 1

TestAccessiblePrompterFunction · 0.65

Implementers 4

PrompterMockinternal/prompter/prompter_mock.go
huhPrompterinternal/prompter/huh_prompter.go
accessiblePrompterinternal/prompter/prompter.go
surveyPrompterinternal/prompter/prompter.go

Calls

no outgoing calls

Tested by 1

TestAccessiblePrompterFunction · 0.52