mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-26 08:19:11 +00:00
fix default value for kind
This commit is contained in:
parent
079a0b240d
commit
66da965edd
@ -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:
|
||||||
|
|||||||
4
main.go
4
main.go
@ -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"`
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user