Skip to main content

shell_quote

Function shell_quote 

Source
pub fn shell_quote(s: &str) -> String
Expand description

Quote a value for a POSIX shell.

Single quotes, with the one escape a single-quoted string needs. This matters more than it looks: the rendered command is meant to be copied and run, and a workflow id can contain spaces, quotes or a ;. A command that is almost right is worse than none.