aboutsummaryrefslogtreecommitdiff
path: root/modules/help-utils.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-19 07:06:45 -0500
committerCraig Jennings <c@cjennings.net>2026-04-19 07:06:45 -0500
commit9b5931749573bab77f661c9d72a6215944b4e191 (patch)
treee912078ebf0e3ff55b363fc808e04f6ddba3b274 /modules/help-utils.el
parent27955ac619013205563f32d64138e77872185a2d (diff)
downloaddotemacs-9b5931749573bab77f661c9d72a6215944b4e191.tar.gz
dotemacs-9b5931749573bab77f661c9d72a6215944b4e191.zip
refactor(transcription): consolidate backends into descriptor alist
Introduce cj/--transcription-backends alist mapping each backend to (:script :auth-host :env-var). Replace: - two near-identical cj/--get-{openai,assemblyai}-api-key functions with a single parameterized cj/--auth-source-password helper - the pcase in cj/--transcription-script-path with an alist lookup - the pcase block in cj/--start-transcription-process that assembled the API-key env var with an alist-driven assembly Adding a new backend is now a single line in the alist. The existing tests plus retargeted API-key tests (now 10, covering the parameterized helper and the descriptor data) verify no behavior change.
Diffstat (limited to 'modules/help-utils.el')
0 files changed, 0 insertions, 0 deletions