Skip to main content

Module command

Module command 

Source

Structs§

CapturedOutput

Enums§

CommandError

Functions§

build_session_args
Build args for an interactive SSH session that runs a command then drops to $SHELL. Produces: ["ssh", "alias", "-t", "cmd; $SHELL"]
expand_placeholders
Replace all {{name}} placeholders in a command string with values from the map. Returns an error if a placeholder has no corresponding value.
extract_placeholders
Extract all {{name}} placeholders from a command string. Returns deduplicated names in the order they first appear.
run_and_capture
Run ssh <host_alias> <command> and capture stdout/stderr.