mirror of
https://github.com/denisidoro/navi.git
synced 2026-08-02 06:52:24 +00:00
13 lines
291 B
Rust
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(())
|
|
}
|