1
0

feat: Introduce explicit start, stop, and status commands, including minimum recording duration.

This commit is contained in:
2026-02-28 18:06:15 +01:00
parent 8ec0629e1a
commit a55e599c4f
13 changed files with 234 additions and 283 deletions

16
_toak
View File

@@ -13,6 +13,9 @@ _toak() {
commands=(
'toggle:Starts or stops the recording'
'start:Explicitly starts the recording'
'stop:Explicitly stops the recording'
'status:Outputs the current daemon status'
'daemon:Starts the background background service'
'discard:Abort current recording without transcribing'
'onboard:Configure the application'
@@ -40,6 +43,19 @@ _toak() {
'(-p --pipe)'{-p,--pipe}'[Output transcription to stdout instead of typing]' \
'--copy[Copy to clipboard instead of typing]'
;;
start)
_arguments \
'(-v --verbose)'{-v,--verbose}'[Enable detailed debug logging]'
;;
stop)
_arguments \
'(-p --pipe)'{-p,--pipe}'[Output transcription to stdout instead of typing]' \
'--copy[Copy to clipboard instead of typing]'
;;
status)
_arguments \
'--json[Output status as JSON]'
;;
discard)
_arguments \
'(-p --pipe)'{-p,--pipe}'[Output transcription to stdout instead of typing]'