reduce default timeout to 100ms

add env var for raw timeout
This commit is contained in:
onyx-and-iris 2026-02-05 15:13:33 +00:00
parent dc733ba500
commit c3221f3df5

2
raw.go
View File

@ -7,7 +7,7 @@ import (
// RawCmd represents the command to send raw OSC messages to the mixer. // RawCmd represents the command to send raw OSC messages to the mixer.
type RawCmd struct { type RawCmd struct {
Timeout time.Duration `help:"Timeout for the OSC message send operation." default:"200ms" short:"t"` Timeout time.Duration `help:"Timeout for the OSC message send operation." default:"100ms" short:"t" env:"XAIR_CLI_RAW_TIMEOUT"`
Address string `help:"The OSC address to send the message to." arg:""` Address string `help:"The OSC address to send the message to." arg:""`
Args []string `help:"The arguments to include in the OSC message." arg:"" optional:""` Args []string `help:"The arguments to include in the OSC message." arg:"" optional:""`
} }