navi/src/cheat_variable.rs
2021-04-19 07:06:34 -03:00

13 lines
291 B
Rust

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