add dependency checker for whisper-cli and ffmpeg

This commit is contained in:
leonardotrapani
2026-02-01 01:05:30 +01:00
parent ca3c03f507
commit 3b946bac98
4 changed files with 145 additions and 2 deletions
+9 -1
View File
@@ -158,4 +158,12 @@ Started: Sun Feb 1 12:22:47 AM CET 2026
- `TestNewTranscriber/unknown_model_returns_error` - returns error for unknown model
- `TestNewTranscriber/streaming_model_returns_error` - returns error for streaming model
- `go test ./internal/transcriber/...` passes
- Typecheck passes
- Typecheck passes
### Task 18: Create dependency checker for whisper-cli
- Created `internal/deps/deps.go`
- Status struct: Installed bool, Path string, Version string
- CheckWhisperCli() uses exec.LookPath, tries --version (whisper-cli doesn't support it, but handles gracefully)
- CheckFFmpeg() same pattern, version extraction works
- Both return Installed=false when binary not found, no errors thrown
- All tests passing, typecheck passes