log

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildInProgressMsg        string = "Build in progress..."
	BuildInProgressSuccessMsg string = "Build in progress... Done."
	BuildInProgressErrorMsg   string = "Build in progress... Error."

	BundleInProgressMsg        string = "Bundle in progress..."
	BundleInProgressSuccessMsg string = "Bundle in progress... Done."
	BundleInProgressErrorMsg   string = "Bundle in progress... Error."
)

Variables

View Source
var ActiveUpdatingPrinter updatingPrinter
View Source
var Output io.Writer

Functions

func CreateCurrentProgressSpinner added in v0.18.0

func CreateCurrentProgressSpinner(style *pterm.Style, msg string)

func Debug

func Debug(a ...any)

func Debugf

func Debugf(format string, a ...any)

Debugf outputs additional information when the --verbose flag is active

func Error

func Error(err error, a ...any)

func Errorf

func Errorf(err error, format string, a ...any)

Errorf highlights a message as an error and shows the stack strace if the --verbose flag is active

func GetPtermErrorStyle added in v0.18.0

func GetPtermErrorStyle() *pterm.Style

func GetPtermSuccessStyle added in v0.18.0

func GetPtermSuccessStyle() *pterm.Style

func Info

func Info(a ...any)

func Infof

func Infof(format string, a ...any)

Infof outputs a regular user message without any highlighting

func NewPTermWriter

func NewPTermWriter(out io.Writer) *ptermWriter

NewPTermWriter returns a writer which ensures that the output written by it doesn't mess with the output of an active pterm.SpinnerPrinter.

func Note

func Note(a ...any)

func Notef

func Notef(format string, a ...any)

Notef highlights a message as a note

func Print

func Print(a ...any)

func Printf

func Printf(format string, a ...any)

Printf writes without any colors

func StopCurrentProgressSpinner added in v0.18.0

func StopCurrentProgressSpinner(style *pterm.Style, msg string)

func Success

func Success(a ...any)

func Successf

func Successf(format string, a ...any)

Successf highlights a message as successful

func Warn

func Warn(a ...any)

func Warnf

func Warnf(format string, a ...any)

Warnf highlights a message as a warning

Types

This section is empty.

Jump to

Keyboard shortcuts

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