Documentation
¶
Overview ¶
Package cmd provides the command-line interface for opnDossier.
Package cmd provides the command-line interface for opnDossier.
Package cmd provides the command-line interface for opnDossier.
Package cmd provides the command-line interface for opnDossier.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrUnsupportedAuditMode = errors.New("unsupported audit mode") ErrFailedToEnrichConfig = errors.New("failed to enrich configuration") )
Static errors for better error handling.
var ( // Cfg holds the application's configuration, loaded from file, environment, or flags. Cfg *config.Config //nolint:gochecknoglobals // Application configuration )
var ErrOperationCancelled = errors.New("operation cancelled by user")
ErrOperationCancelled is returned when the user cancels an operation.
Functions ¶
func GetConfig ¶
GetConfig returns the current application configuration instance. GetConfig returns the current application configuration instance for use by subcommands and other packages.
func GetFlagsByCategory ¶
GetFlagsByCategory returns flags grouped by their category annotation. This demonstrates how flag annotations can be used for programmatic flag management.
func GetLogger ¶
GetLogger returns the current application logger instance. GetLogger returns the centrally configured logger instance for use by other packages.
func GetRootCmd ¶
GetRootCmd returns the root Cobra command for the opnDossier CLI application. This provides access to the application's main command and its subcommands for integration or extension.
Types ¶
This section is empty.