Documentation ¶
Index ¶
- Variables
- func Debug(a ...interface{})
- func Deprecate(a ...interface{})
- func Error(a ...interface{})
- func Info(a ...interface{})
- func PrintCommand(command, context string)
- func PrintCommandError(err error)
- func PrintCommandWithParenthetical(command, context, parenthetical string)
- func PrintEnvironment(variables map[string]*string)
- func PrintSkipped(command string, reason string)
- func PrintTask(taskName string, asSubTask bool)
- func PrintTaskCompleted(taskName string, asSubTask bool)
- func PrintTaskFinally(taskName string, asSubTask bool)
- func Println(a ...interface{})
- func Warn(a ...interface{})
- type VerbosityLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Verbosity allows the verbosity of output to be set. Verbosity = VerbosityLevelNormal // LoggerStdout is a logger that prints to stdout. LoggerStdout = log.New(os.Stdout, "", 0) // LoggerStderr is a logger that prints to stderr. LoggerStderr = log.New(os.Stderr, "", 0) )
Functions ¶
func Deprecate ¶ added in v0.3.2
func Deprecate(a ...interface{})
Deprecate prints a deprecation warning no more than once.
func PrintCommand ¶
func PrintCommand(command, context string)
PrintCommand prints the command to be executed.
func PrintCommandError ¶
func PrintCommandError(err error)
PrintCommandError prints an error from a running command.
func PrintCommandWithParenthetical ¶ added in v0.4.1
func PrintCommandWithParenthetical(command, context, parenthetical string)
PrintCommandWithParenthetical prints a command with additional information.
func PrintEnvironment ¶ added in v0.2.1
PrintEnvironment prints when environment variables are set.
func PrintSkipped ¶
PrintSkipped prints the command skipped and the reason.
func PrintTaskCompleted ¶ added in v0.4.1
PrintTaskCompleted prints when a task has completed.
func PrintTaskFinally ¶ added in v0.4.1
PrintTaskFinally prints when a task's finally clause has begun.
Types ¶
type VerbosityLevel ¶ added in v0.2.0
type VerbosityLevel int
VerbosityLevel describes the verbosity of output.
const ( // VerbosityLevelSilent does not print any output to stderr/stdout. VerbosityLevelSilent VerbosityLevel = iota // VerbosityLevelQuiet only prints command output and error messages. VerbosityLevelQuiet VerbosityLevel = iota // VerbosityLevelNormal is the normal level of verbosity. VerbosityLevelNormal VerbosityLevel = iota // VerbosityLevelVerbose prints all messages, include debug info. VerbosityLevelVerbose VerbosityLevel = iota )
func (VerbosityLevel) String ¶ added in v0.2.0
func (v VerbosityLevel) String() string
Click to show internal directories.
Click to hide internal directories.