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 | 9c0fc70aa731b016b4805ff701686cebf49ffb96 (patch) | |
| tree | 3fdc78ab79ad1dcf5ddd9a49a4f82dc9b65a06bc /tests/test-vc-config--git-clone.el | |
| parent | b76c33845e30363187100ee22108946cbeb6a49c (diff) | |
| download | dotemacs-9c0fc70aa731b016b4805ff701686cebf49ffb96.tar.gz dotemacs-9c0fc70aa731b016b4805ff701686cebf49ffb96.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 'tests/test-vc-config--git-clone.el')
0 files changed, 0 insertions, 0 deletions
