aboutsummaryrefslogtreecommitdiffstats
path: root/flake.lock
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-14 00:24:45 +0000
committertv <tv@krebsco.de>2026-11-14 01:43:19 +0100
commit8f08426ae3a2e5f0ecc5d010bc6469b41e3d7678 (patch)
treef6573ff55af0b9eacf77e7d58d3668c1129a589a /flake.lock
parent57d47a36129b459f0fac519a460c581870a54bbf (diff)
populate: a command line instead of a spec
The program takes populate's arguments on its command line, like other programs: populate [OPTION]... SOURCES [TARGET], with the sources as JSON in the file SOURCES, or on standard input for -. TARGET has the syntax of krops' lib's mkTarget, [USER@][HOST][:PORT][PATH], parsed the same way, and what it leaves out gets filled in when populate runs, as mkTarget would, from LOGNAME and the machine's name. Options set what the syntax can't express, or override its parts: --sudo, --ssh-arg, --user, --host, --port, --path, and --local or --remote for whether the target is the machine populate runs on, which populate otherwise decides like isLocalTarget. The sources carry no version. pkgs.populate passes a target attribute set, as mkTarget returns it, part by part, with --local or --remote as evaluation decides, so nothing changes for krops. A target string goes to the program as it is. The program also refuses target hosts and users starting with -, which ssh would take for options, now that a command line can give them.
Diffstat (limited to 'flake.lock')
0 files changed, 0 insertions, 0 deletions