refactored formatted scripts

cpu struct types being worked on
cpu error handling fixed
moved from anyhow -> thiserror
other shit i'm too tired to mention
This commit is contained in:
D0RYU 2025-05-03 01:08:55 -04:00
parent 528d4b03a3
commit f8316f8ee4
32 changed files with 568 additions and 405 deletions

View file

@ -1,15 +1,15 @@
use serde::Serialize;
use serde::{Serialize, Deserialize};
use serde_json::{Value, json};
use std::{cmp::Ordering::Equal, collections::HashMap};
use sysinfo::{System, Users};
#[derive(Debug, Serialize)]
#[derive(Debug, Serialize, Deserialize)]
pub struct SoftwareInfo {
name: String,
count: usize,
}
#[derive(Debug, Serialize)]
#[derive(Debug, Serialize, Deserialize)]
pub struct ExternalInfo {
softwares: Vec<SoftwareInfo>,
}