console

package
v0.0.0-...-c89580c Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Heading    *color.Color
	HeadingRow *color.Color
	Row        *color.Color
	Highlight  *color.Color
)

Functions

func Ask

func Ask(ask string) string

func Clipboard

func Clipboard(m string)

func Confirm

func Confirm(ask string) bool

func Debug

func Debug(format string, args ...interface{})

func Error

func Error(err error)

func Exit

func Exit(code int, format string, args ...interface{})

Deprecated

func ExitError

func ExitError(format string, args ...interface{})

Deprecated

func ExitIfError

func ExitIfError(err error)

Deprecated

func Info

func Info(format string, args ...interface{})

Use Info to log messages from the scripts. Output is sent to stderr to not muddle up pipe-able output

func Inspect

func Inspect(i interface{})

func Log

func Log(format string, args ...interface{})

func Out

func Out(m string)

Use Out for printing resulting messages that should be piped. For status logging use console.Info

func Print

func Print(c *color.Color, format string, args ...interface{})

func Warn

func Warn(format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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