cmd

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildOnly bool

BuildOnly will only build, but not update anything

View Source
var Hiss bool

Hiss hiss, said the snake

View Source
var InstallerOnly bool

InstallerOnly will only build the installer

View Source
var NoClean bool

NoClean skips cleaning of dirty files

View Source
var Quiet bool

Quiet enables silencing all output

View Source
var Revision string

Revision is the default Clover revision to use

Spinner is the CLI spinner/activity indicator

View Source
var Toolchain string

Toolchain to use when building Clover

View Source
var UpdateOnly bool

UpdateOnly will only update repositories, but not build anything

View Source
var Verbose bool

Verbose enables global verbose output

View Source
var Version = "0.0.0"

Version is set in main.go and is overridable when building

Functions

func Execute

func Execute()

Execute is the entrypoint for the command-line application

Types

type ClobberLogFormatter

type ClobberLogFormatter struct {
}

ClobberLogFormatter is a custom log formatter

func (*ClobberLogFormatter) Format

func (f *ClobberLogFormatter) Format(entry *logrus.Entry) ([]byte, error)

Format formats logs with the custom log format

type ErrorWriterHook added in v0.3.0

type ErrorWriterHook struct {
	Writer    io.Writer
	LogLevels []logrus.Level
}

ErrorWriterHook handles logging errors in quiet/non-verbose mode

func (*ErrorWriterHook) Fire added in v0.3.0

func (hook *ErrorWriterHook) Fire(entry *logrus.Entry) error

Fire formats the error log and writes it to the output

func (*ErrorWriterHook) Levels added in v0.3.0

func (hook *ErrorWriterHook) Levels() []logrus.Level

Levels define on which log levels this hook would trigger

Jump to

Keyboard shortcuts

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