feat: Introduce explicit start, stop, and status commands, including minimum recording duration.
This commit is contained in:
16
_toak
16
_toak
@@ -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]'
|
||||
|
||||
Reference in New Issue
Block a user