Documentation
¶
Overview ¶
Package common provides shared functionality for pipeleek platform-specific binaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "none" Date = "unknown" )
Version information - set via ldflags during build
View Source
var ( JsonLogoutput bool LogFile string LogColor bool LogDebug bool LogLevel string IgnoreProxy bool )
Log configuration
Functions ¶
func AddCommonFlags ¶
AddCommonFlags adds the common logging and output flags to a cobra command
func InitLogger ¶
InitLogger initializes the zerolog logger with the configured options
func SetGlobalLogLevel ¶
SetGlobalLogLevel sets the global log level based on the configured options
func SetupPersistentPreRun ¶
SetupPersistentPreRun sets up the PersistentPreRun handler for logging initialization
Types ¶
type CustomWriter ¶
CustomWriter wraps an os.File with proper cross-platform newline handling
Click to show internal directories.
Click to hide internal directories.