Documentation
¶
Index ¶
- type Display
- func (d *Display) DisplayHeader()
- func (d *Display) DisplayInput(text string)
- func (d *Display) DisplayOutput(text string)
- func (d *Display) FinishOutput(info string)
- func (d *Display) PromptForApproval(question string) (bool, error)
- func (d *Display) PromptForInput() (string, error)
- func (d *Display) ShowResumption(id string, server string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
func NewDisplay ¶
func (*Display) DisplayHeader ¶
func (d *Display) DisplayHeader()
func (*Display) DisplayInput ¶
DisplayInput displays the user input.
func (*Display) DisplayOutput ¶
DisplayOutput displays an output fragment.
func (*Display) FinishOutput ¶
FinishOutput completes the streaming output and shows info if provided
func (*Display) PromptForApproval ¶
PromptForApproval shows an accept/reject dialog Returns true if accepted, false if rejected, and an error if cancelled (Ctrl+C)
func (*Display) PromptForInput ¶
PromptForInput shows the input box and returns the user input Returns the input string and an error if the user cancelled (Ctrl+C)
func (*Display) ShowResumption ¶
Click to show internal directories.
Click to hide internal directories.