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§
- Logging
Args - Ported from the flags returned by
Flags(). Meant to be#[command(flatten)]d into a parentclap::Parserstruct, which is theclapequivalent of Go’s “append this slice of flags to any app”.
Enums§
- CliFlags
Error - Ported from
ErrInvalidColorValue.
Functions§
- parse_
config - Ported from
ParseConfig.