diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 04:25:24 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 04:25:24 -0500 |
| commit | fb66efa9adba679ee441d6c2cf1eb0b9521278fc (patch) | |
| tree | 022ba75b83356399c18f865cda276e74d1ef3955 /scripts/calendar_sync_api.py | |
| parent | b5d9f4e7e5252493ede3e7dc23572e3f3b66ec32 (diff) | |
| download | dotemacs-fb66efa9adba679ee441d6c2cf1eb0b9521278fc.tar.gz dotemacs-fb66efa9adba679ee441d6c2cf1eb0b9521278fc.zip | |
refactor(org-drill): share one validated drill-file selector
org-capture-config.el and org-drill-config.el each scanned drill-dir with an inline directory-files call, so a missing, empty, or unreadable drill-dir surfaced as a low-level directory-files error or an empty completing-read, depending on which command ran. Added cj/--drill-files-or-error, the single validated entry point: it signals a clear user-error when the directory is missing, unreadable, or has no drill files, and otherwise returns the list. cj/--drill-pick-file and both drill capture templates now route through it. The pure cj/--drill-files-in primitive and its tests are unchanged. Tests cover missing dir, empty dir, a non-org-only dir, and a normal listing.
Diffstat (limited to 'scripts/calendar_sync_api.py')
0 files changed, 0 insertions, 0 deletions
