Documentation
¶
Overview ¶
ui is a simple abstraction for implementing easily scriptable user interfaces in cli/tui enviroments.
implements github.com/lordrusk/dctl/menu
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Hf HandlerFunc Flags []string // used for menu UseMenu bool PassFlag string // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(r io.Reader, sf bufio.SplitFunc, flags []string, passFlag string, useMenu bool) *Handler
passFlag is the flag passed to menu to turn on password input. Can be empty string
func (*Handler) NextString ¶
get the next input as a string
Click to show internal directories.
Click to hide internal directories.