console

package
v0.0.0-...-9ac2298 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Banner(font shared.FontBannerType, s string)

func Clear

func Clear()

func Cmd

func Cmd(defaultCmmand string, windowsCmmand ...string)

func Confirm

func Confirm(label string) (bool, error)

func Help

func Help(name string, options []*HelpOptions)

func Select

func Select(label string, options []string) (string, error)

func WithColor

func WithColor[T int | int8 | int16 | int32 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64 | string](color string, chain T)

Types

type BoolAction

type BoolAction struct {
	Action func(bool)
}

type HelpOptions

type HelpOptions struct {
	Opt    string
	Desc   string
	Val    interface{}
	Action interface{}
}

type IntAction

type IntAction struct {
	Action func(int)
}

type StringAction

type StringAction struct {
	Action func(string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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