aboutsummaryrefslogtreecommitdiff
path: root/gptel-tools
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-14 03:47:01 -0500
committerCraig Jennings <c@cjennings.net>2026-05-14 03:47:01 -0500
commit3c60741d8a2172ccccd77fa1399c5de0eb6cf3da (patch)
treef9f0da6bfbaf6b9506bb56039cca108a06e09cb5 /gptel-tools
parent86ea8b7f2fe59b5f26cd403ef70945c4c259cd51 (diff)
downloaddotemacs-3c60741d8a2172ccccd77fa1399c5de0eb6cf3da.tar.gz
dotemacs-3c60741d8a2172ccccd77fa1399c5de0eb6cf3da.zip
test(system-commands): cover resolve, run wrapper, exit/restart, menu
Sibling `test-system-commands-keymap.el` locked the keymap shape. This batch covers the runtime helpers and commands: - `cj/system-cmd--resolve`: trims strings, errors on empty/non-string-non-symbol, round-trips a symbol whose value is a non-empty string, errors on a symbol with empty value. - `cj/system-cmd`: wraps a plain string in `nohup ... &` and hands it to `start-process-shell-command`; a confirm-tagged var with an N response signals user-error. - `cj/system-cmd-exit-emacs`: declining the prompt aborts; accepting calls `kill-emacs`. - `cj/system-cmd-restart-emacs`: declining aborts before scheduling; accepting schedules two timers. - `cj/system-command-menu`: the completing-read pick routes through `call-interactively` to the right command symbol. Top-level defvars for `test-sc-my-cmd` and `test-sc-empty-cmd` make the let-bindings dynamic so `symbol-value` reaches them under lexical scope.
Diffstat (limited to 'gptel-tools')
0 files changed, 0 insertions, 0 deletions