Documentation
      ¶
    
    
  
    
  
    Overview ¶
this is a wrapper for https://github.com/AlecAivazis/survey package but with additional extensions and customizations for glab adapted from https://github.com/cli/cli/blob/trunk/pkg/surveyext/editor.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var EditorQuestionTemplate = `` /* 728-byte string literal not displayed */
    EXTENDED to change prompt text
Functions ¶
Types ¶
type EditorTemplateData ¶
type EditorTemplateData struct {
	survey.Editor
	EditorCommand string
	BlankAllowed  bool
	Answer        string
	ShowAnswer    bool
	ShowHelp      bool
	Config        *survey.PromptConfig
}
    EXTENDED to pass editor name (to use in prompt)
type GLabEditor ¶
EXTENDED to enable different prompting behavior
func (*GLabEditor) Prompt ¶
func (e *GLabEditor) Prompt(config *survey.PromptConfig) (any, error)
EXTENDED This is straight copypasta from survey to get our overridden prompt called.;
 Click to show internal directories. 
   Click to hide internal directories.