cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SuccessColor = color.New(color.FgGreen)
	ErrorColor   = color.New(color.FgRed).Add(color.Bold)
)

Functions

func WriteError

func WriteError(w io.Writer, noColor bool, message string, err error)

func WriteFailure

func WriteFailure(w io.Writer, noColor bool, message string, err error)

func WriteNewLine

func WriteNewLine(w io.Writer)

func WriteOutput

func WriteOutput(w io.Writer, output string)

func WriteOutputF

func WriteOutputF(w io.Writer, format string, args ...interface{})

func WriteSuccess

func WriteSuccess(w io.Writer, noColor bool, output string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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