mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2026-04-19 17:53:30 +00:00
Compare commits
3 Commits
v0.12.0
...
4e58015411
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e58015411 | |||
| 6390f52420 | |||
| fe969193f6 |
@@ -13,7 +13,7 @@
|
|||||||
## `Use`
|
## `Use`
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
.\vmrcli.exe [-h] [-i|-I] [-k] [-D] [-v] [-c] [-m] [-s] <api commands>
|
.\vmrcli.exe [-h] [-v] [-i|-I] [-f] [-k] [-l] [-e] [-c] [-m] [-s] <api commands>
|
||||||
```
|
```
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
@@ -22,8 +22,8 @@ Where:
|
|||||||
- `v`: Print the version of vmrcli.
|
- `v`: Print the version of vmrcli.
|
||||||
- `i`: Enable interactive mode, use (-I) to disable the '>>' prompt.
|
- `i`: Enable interactive mode, use (-I) to disable the '>>' prompt.
|
||||||
- If set, any api commands passed on the command line will be ignored.
|
- If set, any api commands passed on the command line will be ignored.
|
||||||
- `k`: The kind of Voicemeeter (basic, banana or potato). Use this to launch the GUI.
|
|
||||||
- `f`: Do not split input on spaces.
|
- `f`: Do not split input on spaces.
|
||||||
|
- `k`: The kind of Voicemeeter (basic, banana or potato). Use this to launch the GUI.
|
||||||
- `l`: Set log level, must be one of TRACE, DEBUG, INFO, WARN, ERROR, or FATAL
|
- `l`: Set log level, must be one of TRACE, DEBUG, INFO, WARN, ERROR, or FATAL
|
||||||
- `e`: Enable extra console output (toggle, set messages)
|
- `e`: Enable extra console output (toggle, set messages)
|
||||||
- `c`: Load a user configuration (give the full file path)
|
- `c`: Load a user configuration (give the full file path)
|
||||||
|
|||||||
13
Taskfile.yml
13
Taskfile.yml
@@ -69,3 +69,16 @@ tasks:
|
|||||||
{{.SHELL}} -Command "
|
{{.SHELL}} -Command "
|
||||||
if (Test-Path -Path '{{.OBJ_DIR}}') { Remove-Item -Path '{{.OBJ_DIR}}' -Recurse -Force }
|
if (Test-Path -Path '{{.OBJ_DIR}}') { Remove-Item -Path '{{.OBJ_DIR}}' -Recurse -Force }
|
||||||
if (Test-Path -Path '{{.BIN_DIR}}') { Remove-Item -Path '{{.BIN_DIR}}' -Recurse -Force }"
|
if (Test-Path -Path '{{.BIN_DIR}}') { Remove-Item -Path '{{.BIN_DIR}}' -Recurse -Force }"
|
||||||
|
|
||||||
|
bump:
|
||||||
|
desc: 'Bump the version. Usage: "task bump -- show" or "task bump -- [patch|minor|major]".'
|
||||||
|
preconditions:
|
||||||
|
- sh: 'pwsh -c "if (Get-Command bump) { exit 0 } else { exit 1 }"'
|
||||||
|
msg: "The 'bump' command is not available. Please install the required tools to use this command."
|
||||||
|
cmds:
|
||||||
|
- |
|
||||||
|
{{if eq .CLI_ARGS "show"}}
|
||||||
|
pwsh -c "bump show -f src/vmrcli.c -p \"#define VERSION .(\d+\.\d+\.\d+).\""
|
||||||
|
{{else}}
|
||||||
|
pwsh -c "bump {{.CLI_ARGS}} -w -f src/vmrcli.c -p \"#define VERSION .(\d+\.\d+\.\d+).\""
|
||||||
|
{{end}}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
|
|||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
log_set_level(LOG_WARN);
|
log_set_level(log_level);
|
||||||
|
|
||||||
opterr = 0;
|
opterr = 0;
|
||||||
while ((opt = getopt(argc, argv, OPTSTR)) != -1)
|
while ((opt = getopt(argc, argv, OPTSTR)) != -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user