console

package
v0.0.0-...-b4f33a4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	Debug, JSON bool
}

func (*Console) Blue

func (c *Console) Blue(output string) string

Blue outputs the requested text as blue.

func (*Console) Bold

func (c *Console) Bold(output string) string

Bold outputs the requested text as bold.

func (*Console) Error

func (c *Console) Error(err error)

Error displays the error message and a panic if needed.

func (*Console) Green

func (c *Console) Green(output string) string

Green outputs the requested text as green.

func (*Console) Printf

func (c *Console) Printf(format string, a ...any)

Printf is a temporary wrapper on fmt.Printf.

func (*Console) Println

func (c *Console) Println(output string)

Println is a temporary wrapper on fmt.Println.

func (*Console) PromptConfirm

func (c *Console) PromptConfirm(promptText string, def bool) bool

PromptConfirm asks the user to confirm output.

func (*Console) Success

func (c *Console) Success(output string)

Success displays a formatted success message on successful completion of the command.

func (*Console) Warn

func (c *Console) Warn(output string)

Warn displays a formatted warning message.

func (*Console) Yellow

func (c *Console) Yellow(output string) string

Yellow outputs the requested text as yellow.

type Message

type Message struct {
	Status, Message string
}

Jump to

Keyboard shortcuts

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