diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-19 07:12:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-19 07:12:34 -0500 |
| commit | 416fa8a127315f6cb3ea5b839d961961a8e9e0b6 (patch) | |
| tree | 6a049c48ab61d05721b5b9144901ccc766d351d9 /githooks/pre-commit | |
| parent | a8b00d370334f571f8284ca14a65400705594a82 (diff) | |
| download | dotemacs-416fa8a127315f6cb3ea5b839d961961a8e9e0b6.tar.gz dotemacs-416fa8a127315f6cb3ea5b839d961961a8e9e0b6.zip | |
refactor(transcription): extract four sentinel side-effect helpers
Break cj/--transcription-sentinel's seven inline side-effects into named
helpers:
- cj/--write-transcript-on-success: writes process output to .txt on success
- cj/--append-to-log: appends event marker + process output to log
- cj/--update-transcription-status: marks tracking-list entry complete/error
- cj/--notify-completion: sends success or critical notification
Also: switch the tautological (cj/--should-keep-log t) to use the local
success-p (equivalent but matches the function signature), and rename
the unused audio-file sentinel arg to _audio-file.
Sentinel shrinks from 48 lines with 7 inline blocks to 14 lines of
straight-line helper calls. 10 tests cover the extracted helpers.
Diffstat (limited to 'githooks/pre-commit')
0 files changed, 0 insertions, 0 deletions
