fix default value for kind

This commit is contained in:
onyx-and-iris 2026-02-06 00:47:34 +00:00
parent 079a0b240d
commit 66da965edd
2 changed files with 5 additions and 5 deletions

View File

@ -37,9 +37,9 @@ A CLI to control Behringer X-Air mixers.
Flags: Flags:
-h, --help Show context-sensitive help. -h, --help Show context-sensitive help.
--host="mixer.local" The host of the X-Air device ($XAIR_CLI_HOST). -H, --host="mixer.local" The host of the X-Air device ($XAIR_CLI_HOST).
--port=10024 The port of the X-Air device ($XAIR_CLI_PORT). -P, --port=10024 The port of the X-Air device ($XAIR_CLI_PORT).
--kind="xr18" The kind of the X-Air device ($XAIR_CLI_KIND). -K, --kind="xair" The kind of the X-Air device ($XAIR_CLI_KIND).
-v, --version Print gobs-cli version information and quit -v, --version Print gobs-cli version information and quit
Commands: Commands:

View File

@ -34,7 +34,7 @@ type context struct {
type Config struct { type Config struct {
Host string `default:"mixer.local" help:"The host of the X-Air device." env:"XAIR_CLI_HOST" short:"H"` Host string `default:"mixer.local" help:"The host of the X-Air device." env:"XAIR_CLI_HOST" short:"H"`
Port int `default:"10024" help:"The port of the X-Air device." env:"XAIR_CLI_PORT" short:"P"` Port int `default:"10024" help:"The port of the X-Air device." env:"XAIR_CLI_PORT" short:"P"`
Kind string `default:"xr18" help:"The kind of the X-Air device." env:"XAIR_CLI_KIND" short:"K"` Kind string `default:"xair" help:"The kind of the X-Air device." env:"XAIR_CLI_KIND" short:"K"`
} }
// CLI is the main struct for the command-line interface. // CLI is the main struct for the command-line interface.
@ -42,7 +42,7 @@ type Config struct {
type CLI struct { type CLI struct {
Config `embed:"" prefix:"" help:"The configuration for the CLI."` Config `embed:"" prefix:"" help:"The configuration for the CLI."`
Version VersionFlag `help:"Print gobs-cli version information and quit" name:"version" short:"v"` Version VersionFlag `help:"Print xair-cli version information and quit" name:"version" short:"v"`
Completion kongcompletion.Completion `help:"Generate shell completion scripts." cmd:"" aliases:"c"` Completion kongcompletion.Completion `help:"Generate shell completion scripts." cmd:"" aliases:"c"`