pipette_client

Macro cmd

Source
macro_rules! cmd {
    ($sh:expr, $cmd:literal) => { ... };
}
Expand description

Constructs a Cmd from the given string, with interpolation.

ยงExample

async fn example(sh: &mut UnixShell<'_>) {
    let args = ["hello", "world"];
    assert_eq!(cmd!(sh, "echo {args...}").read().await.unwrap(), "hello world");
}