Documentation ¶
Index ¶
- Constants
- Variables
- func Ask(f string, args ...any) string
- func AskForBoolWithDefault(text string, defaultResponse bool) bool
- func AskForIntegerWithDefault(text string, defaultResponse int) int
- func AskWithDefault(text string, defaultResponse string) string
- func AskWithValidation(text string, validation func(string) error) string
- func ExitIfError(context string, err error)
- func ExitWith(format string, args ...any)
- func F(format string, args ...interface{}) string
- func Fi(indentation uint, format string, args ...interface{}) string
- func Fiw(indentation uint, maxWidth uint, format string, args ...interface{}) string
- func Flniw(writer io.Writer, indentation uint, maxWidth uint, format string, ...)
- func Fp(writer io.Writer, format string, args ...interface{})
- func Fpi(writer io.Writer, indentation uint, format string, args ...interface{})
- func Fpiw(writer io.Writer, indentation uint, maxWidth uint, format string, ...)
- func Fpln(writer io.Writer, format string, args ...interface{})
- func Fplni(writer io.Writer, indentation uint, format string, args ...interface{})
- func Invoke(executable Executable)
- func P(format string, args ...interface{})
- func Pi(indentation uint, format string, args ...interface{})
- func Pick(text string, options []string) string
- func Piw(indentation uint, maxWidth uint, format string, args ...interface{})
- func Pln(format string, args ...interface{})
- func Plni(indentation uint, format string, args ...interface{})
- func Plniw(indentation uint, maxWidth uint, format string, args ...interface{})
- type ColorMode
- type Command
- type CommandGroup
- type Executable
- type Formatter
- func (f Formatter) CycleJoin(elements []string, joiner string, cycle []string) string
- func (f Formatter) F(format string, args ...interface{}) string
- func (f Formatter) Fi(indentation uint, format string, args ...interface{}) string
- func (f Formatter) Fiw(indentation uint, maxWidth uint, format string, args ...interface{}) string
Constants ¶
View Source
const COLS = 80
View Source
const SAY_VERSION = "1.1.0"
Variables ¶
View Source
var SingletonFormatter = New(ColorModeTerminal)
Functions ¶
func AskForBoolWithDefault ¶
func AskWithDefault ¶
func ExitIfError ¶
func Invoke ¶
func Invoke(executable Executable)
Types ¶
type CommandGroup ¶
type Executable ¶
type Executable struct { Name string Description string CommandGroups []CommandGroup }
Click to show internal directories.
Click to hide internal directories.