navi 2.24.0

An interactive cheatsheet tool for the command-line
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::common::shell::{self, ShellSpawnError};
use crate::prelude::*;

pub fn expand() -> Result<()> {
    let cmd = r#"sed -e 's/^.*$/"&"/' | tr '\n' ' '"#;
    shell::out()
        .arg(cmd)
        .spawn()
        .map_err(|e| ShellSpawnError::new(cmd, e))?
        .wait()?;
    Ok(())
}