summaryrefslogtreecommitdiff
path: root/scripts/gvim
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-20 10:55:58 +0300
committerPaul Buetow <paul@buetow.org>2026-06-20 10:55:58 +0300
commit1a6323c0e6c865694266cfab24bc022a5eecb534 (patch)
tree38d20d336b737dc371922b26855146df6a95d5b4 /scripts/gvim
parenta64fdc14e4dae51200802f13530b6480c59a75ef (diff)
taskwarrior: DRY up export/import into symmetric label helpers
The export path passed a file_label argument that was always identical to the tag (TASK_EXPORT_TAG/TASK_EXPORT_TAG, rocky/rocky), and the import path duplicated the find | while read | import/rm block once per source. Collapse both into a single 'list of labels' model: - _taskwarrior::export_tag drops the redundant file_label; the tag name is the file label. - New _taskwarrior::import_label imports+removes all files for one label, replacing the two copy-pasted blocks. - export loops over [$TASK_EXPORT_TAG rocky]; import loops over [$TASK_IMPORT_TAG (hostname)]. The rocky routing (export by tag name, import by hostname match) is now explicit and symmetric. Behaviour is unchanged; verified with a stubbed-task/hostname harness covering the rocky host, a non-rocky host, and label isolation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'scripts/gvim')
0 files changed, 0 insertions, 0 deletions