Skip to main content

warn_on_split_template

Function warn_on_split_template 

Source
pub fn warn_on_split_template(command: &str)
Expand description

Emit a one-line diagnostic when a built command contains an unquoted Go template token with an internal space. This points users at the shell-splitting gotcha behind the cryptic downstream errors (e.g. Go’s “unclosed action”). Silenced via COMMAND_STREAM_NO_TEMPLATE_WARNING, and each unique snippet is only reported once per process.