One config, many uses: mox -a deploy env=staging with {{env}} usable in connect templates and commands would remove a whole class of duplicated session definitions.
Proposal: a vars: map on the config/session for defaults, overridable by trailing key=value args. The {{host}} substitution pass already exists — generalize it over more fields, and error on undefined {{name}} references to stay consistent with strict validation. No templating library needed.
One config, many uses:
mox -a deploy env=stagingwith{{env}}usable in connect templates and commands would remove a whole class of duplicated session definitions.Proposal: a
vars:map on the config/session for defaults, overridable by trailing key=value args. The {{host}} substitution pass already exists — generalize it over more fields, and error on undefined {{name}} references to stay consistent with strict validation. No templating library needed.