printer

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CIFlag             = "ci"
	LogFileFlag        = "log-file"
	LogFileShorthand   = "l"
	LogFormatFlag      = "log-format"
	LogFormatShorthand = "f"
	LogLevelFlag       = "log-level"
	LogPathFlag        = "log-path"
	NoColorFlag        = "no-color"
	SilentFlag         = "silent"
	SilentShorthand    = "s"
	VerboseFlag        = "verbose"
	VerboseShorthand   = "v"
	LogFormatJSON      = "json"
	LogFormatPretty    = "pretty"
)

Variables

This section is empty.

Functions

func CI

func CI(opt interface{}, changed bool) error

CI - enable only log messages to CLI output

func IsInitialized added in v1.3.0

func IsInitialized() bool

IsInitialized returns true if printer is ready, false otherwise

func LogFile

func LogFile(opt interface{}, changed bool) error

LogFile - enables write to log file

func LogFormat

func LogFormat(opt interface{}, changed bool) error

LogFormat - configures the logs format (JSON,pretty).

func LogLevel

func LogLevel(opt interface{}, changed bool) error

LogLevel - sets log level

func LogPath

func LogPath(opt interface{}, changed bool) error

LogPath - sets the log files location

func NoColor

func NoColor(opt interface{}, changed bool) error

NoColor - disables ASCII color codes

func SetupPrinter

func SetupPrinter(flags *pflag.FlagSet) error

SetupPrinter - configures stdout and log options with given FlagSet

func Silent

func Silent(opt interface{}, changed bool) error

Silent - disables stdout output

func Verbose

func Verbose(opt interface{}, changed bool) error

Verbose - redirects log entries to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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