refactor: Implement dynamic skill loading from definitions, replacing hardcoded skills, and add a new skill management command.
This commit is contained in:
10
_toak
10
_toak
@@ -19,6 +19,7 @@ _toak() {
|
||||
'latency-test:Benchmark full pipeline without recording'
|
||||
'show:Show current configuration'
|
||||
'config:Update a specific configuration setting'
|
||||
'skill:Manage dynamic skills (list, add, remove)'
|
||||
)
|
||||
|
||||
_arguments -C \
|
||||
@@ -46,6 +47,15 @@ _toak() {
|
||||
'1:key:(llm whisper language lang backend punctuation tech)' \
|
||||
'2:value:'
|
||||
;;
|
||||
skill)
|
||||
local -a skill_cmds
|
||||
skill_cmds=(
|
||||
'list:List all available skills'
|
||||
'add:Add a new skill interactively'
|
||||
'remove:Remove a skill'
|
||||
)
|
||||
_describe -t commands 'skill command' skill_cmds
|
||||
;;
|
||||
*)
|
||||
_message "no more arguments"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user