vm-cli reworked.

now accepts -kind and -delay flags.

arg parsing moved into separate run_commands function.

README added to vm-cli example
This commit is contained in:
onyx-and-iris
2022-09-18 05:39:42 +01:00
parent c05bf500ee
commit 2c6baf20e4
2 changed files with 55 additions and 25 deletions

View File

@@ -4,16 +4,22 @@ A simple voicemeeter-cli program. Offers ability to toggle, get and set paramete
## Use
Toggle with `!` prefix, get by excluding `=` and set by including `=`. Mix and match arguments, for example:
Toggle with `!` prefix, get by excluding `=` and set by including `=`. Mix and match arguments.
You may pass an optional flag -kind to set the kind of Voicemeeter. Defaults to banana.
You may pass an optional flag -delay to set a delay on the getters. Defaults to 15ms.
`go run .\main.go strip[0].mute=0 strip[0].mute !strip[0].mute strip[0].mute bus[0].gain=-8.8`
for example:
`go run .\main.go -kind=potato -delay=18 strip[0].mute=0 strip[0].mute !strip[0].mute strip[0].mute bus[0].gain=-8.8 command.lock=1`
Expected output:
```
Logged into Voicemeeter potato
Running command strip[0].mute=0
Value of strip[0].mute is: 0
Toggling strip[0].mute
Value of strip[0].mute is: 1
Running command bus[0].gain=-8.8
Running command command.lock=1
```