mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
add persistent flag --kind
use it to configure the client
This commit is contained in:
@@ -7,3 +7,12 @@ var xairAddressMap = map[string]string{
|
||||
var x32AddressMap = map[string]string{
|
||||
"bus": "/bus/%02d",
|
||||
}
|
||||
|
||||
func addressMapForMixerKind(kind MixerKind) map[string]string {
|
||||
switch kind {
|
||||
case KindX32:
|
||||
return x32AddressMap
|
||||
default:
|
||||
return xairAddressMap
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user