add model remove cli command

This commit is contained in:
leonardotrapani
2026-02-01 01:22:53 +01:00
parent 61b2db53bc
commit c05a3c8c2a
3 changed files with 49 additions and 2 deletions
+9 -1
View File
@@ -255,4 +255,12 @@ Started: Sun Feb 1 12:22:47 AM CET 2026
- Downloads with progress callback showing percentage (10%, 20%, ...)
- Prints success message with full model path
- Tested: cloud model rejection, unknown model error, download with progress, already installed
- All tests passing, typecheck passes
- All tests passing, typecheck passes
### Task 26: Add model remove CLI command
- Created `modelRemoveCmd()` subcommand with Use: 'remove <model-name>'
- Uses `provider.FindModelByID()` to find model across all providers
- Cloud models: prints 'nothing to remove'
- Not installed: returns error 'model is not installed'
- Installed: calls `whisper.Remove()`, prints success message
- All verification scenarios tested, typecheck passes