confirm

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTitle = "Warning"

Variables

View Source
var DefaultPrompt = "                                      " + color.YellowString(";   :   ;") + "\n" +
	"            " + st + "              " + st + "       " + color.YellowString(".   \\_,!,_/   ,") + "\n" +
	"       __            " + st + "              " + color.YellowString("`.,'     `.,'") + "\n" +
	`  ---  \ \______          ` + st + `          ` + color.YellowString(`/         \`) + "\n" +
	"--- " + color.RedString("#") + color.YellowString("#") + color.HiYellowString("#") + "[==______>               " + color.YellowString("~ -- :         : -- ~") + "\n" +
	"  ---  /_/                           " + color.YellowString(`\         /`) + "\n" +
	"                    " + st + "               " + color.YellowString(",'`._   _.'`.") + "\n" +
	"         " + st + "                         " + color.YellowString("'   / `!` \\   `") + "\n" +
	"     " + st + "                     " + st + "          " + color.YellowString(";   :   ;") + "  \n"

Functions

This section is empty.

Types

type Confirmation

type Confirmation struct {
	Prompt  string
	Title   string
	Message string
	Body    interface{}
	Color   *color.Color
}

func (*Confirmation) DoPrompt

func (c *Confirmation) DoPrompt(out io.Writer) (bool, error)

Jump to

Keyboard shortcuts

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