commands

package
v2.4.10 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevelIds = map[zerolog.Level][]string{
	zerolog.PanicLevel: {"panic"},
	zerolog.FatalLevel: {"fatal"},
	zerolog.ErrorLevel: {"error"},
	zerolog.WarnLevel:  {"warn", "warning"},
	zerolog.InfoLevel:  {"info"},
	zerolog.DebugLevel: {"debug"},
	zerolog.TraceLevel: {"trace"},
}

Map zerolog levels to their textual representations

Functions

func AddCommand

func AddCommand(cmd *cobra.Command)

func ConfigureLogging added in v2.3.0

func ConfigureLogging()

ConfigureLogging sets up zerolog based on command-line flags and environment variables

func ConvertCbzCommand

func ConvertCbzCommand(cmd *cobra.Command, args []string) error

func Execute

func Execute()

Execute executes the root command.

func SetVersionInfo

func SetVersionInfo(version, commit, date string)

func WatchCommand

func WatchCommand(_ *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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