Skip to main content

Module cliflags

Module cliflags 

Source
Expand description

CLI flag definitions for the logging package.

Ported from internal/logging/cliflags/flags.go. Not yet implemented.

Go’s flags are built on urfave/cli/v3; this workspace’s CLI crate (xianyun-cli) uses clap (see the workspace Cargo.toml), which is this port’s target instead. clap::Args (derivable, composable flag groups meant to be #[command(flatten)]d into a parent command) is the idiomatic replacement for urfave/cli’s Flags() []cli.Flag returning a slice to attach to any app. See PORT_NOTES.md.

Structs§

LoggingArgs
Ported from the flags returned by Flags(). Meant to be #[command(flatten)]d into a parent clap::Parser struct, which is the clap equivalent of Go’s “append this slice of flags to any app”.

Enums§

CliFlagsError
Ported from ErrInvalidColorValue.

Functions§

parse_config
Ported from ParseConfig.