Skip to main content

command_line

Function command_line 

Source
pub fn command_line(
    command: &CommandLine,
    ctx: &RenderContext,
) -> Result<(String, Vec<String>), RenderError>
Expand description

The program and arguments of a command line.

A shell command runs as /bin/sh -c <text>; an argument list renders each element, the first being the program.

§Errors

Returns a RenderError if a template can’t be rendered, or for a shell command with a reference.