AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

This commit is contained in:
SadlyNotSappho 2023-03-10 12:42:46 -08:00
parent 040722c858
commit ea593cffe5
1 changed files with 9 additions and 0 deletions

9
src/lib.rs Normal file
View File

@ -0,0 +1,9 @@
use std::fs::read_to_string;
use dotenv_parser::parse_dotenv;
pub fn get_os() {
let os_release = read_to_string("/etc/os-release").unwrap();
let parsed = parse_dotenv(&os_release).unwrap();
println!("{}", parsed.get("PRETTY_NAME").unwrap());
}