cmd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

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

View Source
var (
	ErrUnsupportedAuditMode = errors.New("unsupported audit mode")
	ErrFailedToEnrichConfig = errors.New("failed to enrich configuration")
)

Static errors for better error handling.

View Source
var (

	// Cfg holds the application's configuration, loaded from file, environment, or flags.
	Cfg *config.Config //nolint:gochecknoglobals // Application configuration

)
View Source
var ErrOperationCancelled = errors.New("operation cancelled by user")

ErrOperationCancelled is returned when the user cancels an operation.

Functions

func GetConfig

func GetConfig() *config.Config

GetConfig returns the current application configuration instance. GetConfig returns the current application configuration instance for use by subcommands and other packages.

func GetFlagsByCategory

func GetFlagsByCategory(cmd *cobra.Command) map[string][]string

GetFlagsByCategory returns flags grouped by their category annotation. This demonstrates how flag annotations can be used for programmatic flag management.

func GetLogger

func GetLogger() *log.Logger

GetLogger returns the current application logger instance. GetLogger returns the centrally configured logger instance for use by other packages.

func GetRootCmd

func GetRootCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL