1
2
3
4
5
6
7
8
9
10
11
12
13
14
use apputils::config::Cfg;
use apputils::Colors;
use apputils::paintln;

fn main() {
	paintln!(Colors::Rgb(42, 164, 69), "Attempting to read alacritty config file...");
	match Cfg::read("alacritty", "alacritty.toml") {
		Ok(data) => println!("Your alacritty config:\n{}", data),
		Err(_) => paintln!(Colors::Red, "You don't seem to have an alacritty config!"),
	}

	paintln!(Colors::Rgb(129, 69, 231), "But does your terminal support TrueColor?");
	paintln!(Colors::RgbBold(129, 69, 231), "And does it support Bold Colors???");
}