use std::io::Result; use std::process::{Command, ExitStatus}; pub fn open_bat() -> Result { Command::new("bat") .arg("--paging") .arg("always") .arg("/tmp/log_e") .spawn()? .wait() }