Documentation ¶
Index ¶
- type Console
- func (c *Console) Blue(output string) string
- func (c *Console) Bold(output string) string
- func (c *Console) Error(err error)
- func (c *Console) Green(output string) string
- func (c *Console) Printf(format string, a ...any)
- func (c *Console) Println(output string)
- func (c *Console) PromptConfirm(promptText string, def bool) bool
- func (c *Console) Success(output string)
- func (c *Console) Warn(output string)
- func (c *Console) Yellow(output string) string
- type Message
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) PromptConfirm ¶
PromptConfirm asks the user to confirm output.
func (*Console) Success ¶
Success displays a formatted success message on successful completion of the command.
Click to show internal directories.
Click to hide internal directories.