pub fn render_module(module_name: &str) -> process::Command {
    let binary = fs::canonicalize("./target/debug/starship").unwrap();
    let mut command = process::Command::new(binary);

    command
        .arg("module")
        .arg(module_name)
        .env_clear()
        .env("PATH", env!("PATH")) // Provide the $PATH variable so that external programs are runnable
        .env("STARSHIP_CONFIG", EMPTY_CONFIG.as_os_str());

    command
}
/// Render a specific starship module by name
Render a specific starship module by name
Render a specific starship module by name
pub fn render_module(module_name: &str) -> process::Command {
    let binary = fs::canonicalize("./target/debug/starship").unwrap();
    let mut command = process::Command::new(binary);
    command
        .arg("module")
        .arg(module_name)
        .env_clear()
        .env("PATH", env!("PATH")) // Provide the $PATH variable so that external programs are runnable
        .env("STARSHIP_CONFIG", EMPTY_CONFIG.as_os_str());
    command
}
pub fn render_module ( module_name : & str ) -> process :: Command { let binary = fs :: canonicalize ( " " ) . unwrap ( ) ; let mut command = process :: Command :: new ( binary ) ; command . arg ( " " ) . arg ( module_name ) . env_clear ( ) . env ( " " , env ! ( " " ) ) // Provide the $PATH variable so that external programs are runnable . env ( " " , EMPTY_CONFIG . as_os_str ( ) ) ; command }
Render a specific starship module by name
Render a specific starship module by name
module_name
&str