surveyext

package
v0.8.1-pre.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

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

EXTENDED to change prompt text

Functions

This section is empty.

Types

type EditorTemplateData

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

EXTENDED to pass editor name (to use in prompt)

type GhEditor

type GhEditor struct {
	*survey.Editor
	EditorCommand string
}

EXTENDED to enable different prompting behavior

func (*GhEditor) Prompt

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

EXTENDED This is straight copypasta from survey to get our overridden prompt called.;

Jump to

Keyboard shortcuts

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