mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-26 08:19:11 +00:00
reduce default timeout to 100ms
add env var for raw timeout
This commit is contained in:
parent
dc733ba500
commit
c3221f3df5
6
raw.go
6
raw.go
@ -7,9 +7,9 @@ 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:""`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run executes the RawCmd by sending the specified OSC message to the mixer and optionally waiting for a response.
|
// Run executes the RawCmd by sending the specified OSC message to the mixer and optionally waiting for a response.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user