auraline 0.5.0

utility that renders information into a string suitable to be embedded in the shell prompt.
1
2
3
4
5
6
7
8
use crate::cmd::CMD;

pub async fn net_namespace() -> Option<String> {
    CMD.exec("ip", ["netns", "identify"])
        .await
        .filter(|s| !s.is_empty())
        .map(|s| format!("⁅{s}"))
}