surveyext

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EditorQuestionTemplate = `` /* 714-byte string literal not displayed */

EditorQuestionTemplate is EXTENDED to change prompt text.

Functions

func Edit

func Edit(editorCommand, fn, initialValue string, stdin io.Reader, stdout io.Writer, stderr io.Writer, cursor showable) (string, error)

Edit sanitizes the editor text.

Types

type EditorTemplateData

type EditorTemplateData struct {
	survey.Editor
	EditorCommand string
	BlankAllowed  bool
	Answer        string
	ShowAnswer    bool
	ShowHelp      bool
	Config        *survey.PromptConfig
}

EditorTemplateData is EXTENDED to pass editor name (to use in prompt).

type JiraEditor

type JiraEditor struct {
	*survey.Editor
	EditorCommand string
	BlankAllowed  bool
}

JiraEditor is EXTENDED from survey.Editor to enable different prompting behavior.

func (*JiraEditor) Prompt

func (e *JiraEditor) Prompt(config *survey.PromptConfig) (interface{}, error)

Prompt is EXTENDED to get our overridden prompt called. This is straight copy-paste from survey.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL