cliflags

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cliflags provides urfave/cli/v3 flag definitions for the logging package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidColorValue is returned when an invalid log-color value is provided.
	ErrInvalidColorValue = errors.New("invalid log-color value")
)

Functions

func Flags

func Flags() []cli.Flag

Flags returns a slice of cli.Flag for configuring logging. These flags can be added to any urfave/cli/v3 application to provide consistent logging configuration across multiple applications.

func ParseConfig

func ParseConfig(cmd *cli.Command) (*logging.Config, error)

ParseConfig extracts logging configuration from urfave/cli/v3 command flags. This should be called after the command has parsed its flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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