auraline 0.5.4

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, options::Options};

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