Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option defines a configurable cmdline interface option.
func DefaultOpts ¶
func DefaultOpts() Option
DefaultOpts is a convenience wrapper that enumerates and configures the set of default
options for the cmdline interface.
func NoColor ¶
func NoColor() Option
NoColor returns an Option that sets if the output is colorized or not.
Colorized output is enabled by default.
func WithBuildID ¶ added in v0.13.0
WithBuildID returns an Option that set the build id to use.
func WithStderr ¶
WithStderr returns an Option that sets the cmdline interface's stderr writer.
Defaults to os.Stderr.
func WithStdout ¶
WithStdout returns an Option that sets the cmdline interface's stdout writer.
Defaults to os.Stdout.
Click to show internal directories.
Click to hide internal directories.