Documentation
¶
Overview ¶
Package silent provides the CLI commands "--silent" flag that raises the log level to warning and above.
Index ¶
Constants ¶
View Source
const (
SilentFlagName = "silent"
)
Names of the CLI flags provided in this package.
Variables ¶
This section is empty.
Functions ¶
func BeforeCommand ¶
BeforeCommand runs before(!) the debug flag's BeforeCommand and raises the logging bar when the "--silent" flag has been specified with the command. It does so by attaching the forced level to the context of the command.
func PreferSilence ¶
PreferSilence configures the command to default to --silence instead of --silence=false; CLI users can still override this by specifying “--silence=false”. PreferSilence needs to be called before the BeforeCommand plugins chain runs, that is, before clippy.BeforeCommand.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.