nxfetch 0.3.0

A minimal, fast and batteries included fetcher!
Documentation
pub mod colors;
pub mod colors_bright;
pub mod colors_dual;
pub mod cpu;
pub mod desktop;
pub mod disk;
pub mod disks;
pub mod empty;
pub mod host;
pub mod kernel;
pub mod memory;
pub mod os;
pub mod shell;
pub mod term;
pub mod terminal;
pub mod title;
pub mod uptime;
pub mod user;

use colored::Colorize;

pub trait MicroFetcher: Send {
    fn get_type(&self) -> &str;
    fn get_name(&self) -> &str;
    fn get_text(&self) -> &str;
    fn get_sep(&self) -> &str {
        " "
    }
    fn as_str(&self, no_module_names: bool) -> String {
        match no_module_names {
            false => format!(
                "{}{}{}",
                self.get_name().bold(),
                self.get_sep(),
                self.get_text()
            ),
            true => self.get_text().to_owned(),
        }
    }
}