Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MessageInput ¶
MessageInput displays an input to type commit short message
func YesNoSelect ¶
YesNoSelect display a select promptui item Yes/No if negative = false, No/Yes if negative = true
Types ¶
type BellSkipper ¶
type BellSkipper struct{}
BellSkipper implements an io.WriteCloser that skips the terminal bell character (ASCII code 7), and writes the rest to os.Stderr. It is used to replace readline.Stdout, that is the package used by promptui to display the prompts.
This is a workaround for the bell issue documented in https://github.com/manifoldco/promptui/issues/49.
func (*BellSkipper) Close ¶
func (bs *BellSkipper) Close() error
Close implements an io.WriterCloser over os.Stderr.
Click to show internal directories.
Click to hide internal directories.