clippy

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ClippyTemplate = `` /* 365-byte string literal not displayed */
View Source
const IssuesURL = "https://github.com/TimeIncOSS/ape-dev-rt/issues/new"
View Source
const MaxLineLimit = 65
View Source
const MaxLines = 18
View Source
const MinLines = 4
View Source
const NegativeAnswer = "\nOK, bailing out.\n¯\\_(ツ)_/¯"
View Source
const NoteLengthLimit = MaxLines * MaxLineLimit
View Source
const OverriddenPromptTemplate = "\n{{.Question}} {{.Yes}}\n\n"
View Source
const PromptQuestion = "continue?"
View Source
const PromptTemplate = "\n{{.Question}} {{.Yes}}/{{.No}}:"

Variables

This section is empty.

Functions

func BoolPrompt

func BoolPrompt(promptNote string, yesOverride, isSensitive bool, yesCallback pCallback, noCallback pCallback) (interface{}, bool, error)

Types

type Clippy

type Clippy struct {
	// contains filtered or unexported fields
}

func NewClippy

func NewClippy(styleFunc func(string) string) *Clippy

func (*Clippy) AskBoolean

func (c *Clippy) AskBoolean(note, question string,
	isTrueByDefault bool, yesOverride bool) (bool, error)

Jump to

Keyboard shortcuts

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