Documentation
¶
Overview ¶
Package flags provides flag handling utilities for CLI commands.
This package contains helpers for working with Cobra command flags, including timing flag detection and conditional timer usage.
Index ¶
Constants ¶
View Source
const TimingFlagName = "timing"
TimingFlagName is the global/root persistent flag that enables timing output.
Variables ¶
This section is empty.
Functions ¶
func IsTimingEnabled ¶
IsTimingEnabled reports whether the current command invocation has timing enabled.
The flag is defined as a root persistent flag and inherited by subcommands.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.