aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-14 04:18:14 +0000
committertv <tv@krebsco.de>2026-11-14 04:18:14 +0000
commitee3a91eada2e863a192980df1f15dedd9f397f1c (patch)
tree56794bf9ea9635dedaafa63d89838f6e3d8b1a77 /lib
parenta9ad68526998290bf8203008d6db710727953d20 (diff)
populate: populate shell, running shell code on a target
populate shell [OPTION]... TARGET SCRIPT runs SCRIPT with /bin/sh on TARGET, reached like populate reaches it, deciding whether it's local when it runs, with local or remote as $1, so SCRIPT can tell. It takes populate's target options but --path, and --tty, giving SCRIPT a terminal on a remote target, and --local-only, failing before connecting unless the target is local. It replaces itself with the command running SCRIPT, so the exit status, the terminal, and signals are SCRIPT's. krops can run nixos-rebuild with it, which needs whether the target is local, unless it decides that during evaluation, which pure evaluation can't. The command line's parsing is shared between populate and populate shell.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions