tests/examples updated with v2 changes

getCmd in vm-cli always prints value.
This commit is contained in:
2022-12-08 10:52:15 +00:00
parent c4f00a3dbd
commit 7f2646ca6e
6 changed files with 150 additions and 114 deletions

View File

@@ -8,7 +8,7 @@ import (
"os"
"strings"
"github.com/onyx-and-iris/voicemeeter"
"github.com/onyx-and-iris/voicemeeter/v2"
)
type (
@@ -168,9 +168,9 @@ func getCmd(vm *voicemeeter.Remote, cmd string) error {
err = fmt.Errorf("unable to get %s", cmd)
return err
}
vPrinter.printf("Value of %s is: %s", cmd, valS)
fmt.Printf("Value of %s is: %s", cmd, valS)
} else {
vPrinter.printf("Value of %s is: %v", cmd, valF)
fmt.Printf("Value of %s is: %v", cmd, valF)
}
return nil
}