Closed JakeRoggenbuck closed 1 year ago
match new {
"help" => help(),
"get freq" => int.get.freq(false),
"get power" => int.get.power(false),
"get usage" => int.get.usage(false),
"get turbo" => int.get.turbo(false),
"get available_governors" => int.get.available_govs(false),
"get cpus" => int.get.cpus(false),
"get speeds" => int.get.speeds(false),
"get temp" => int.get.temp(false),
"get govs" => int.get.govs(false),
"get battery_condition" => int.get.bat_cond(false),
"set gov performance" => {
let config: Config = get_config();
int.set
.gov("performance".to_string(), config, set_settings.clone());
}
"set gov powersave" => {
let config: Config = get_config();
int.set
.gov("powersave".to_string(), config, set_settings.clone());
}
"exit" => {
println!("Bye!");
return;
}
_ => println!(
"{}",
format!("Command '{}' not found. Use 'help'.", new).red()
),
};
The help function
help()
in interactive.rs needs to be updates to what it can actually do. To see the things it actually does, look at the later match statement in the file.