Skip to main content

quote_all

Function quote_all 

Source
pub fn quote_all(values: &[&str]) -> String
Expand description

Quote multiple values and join them with spaces

Convenience function for quoting a list of arguments.

ยงExamples

use command_stream::quote::quote_all;

let args = vec!["echo", "hello world", "test"];
assert_eq!(quote_all(&args), "echo 'hello world' test");