surveyext

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 10 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 EditorName added in v1.0.0

func EditorName(editorCommand string) string

EditorName gets editor from the editor command.

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
	// contains filtered or unexported fields
}

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