feat(src/commands): add power profile status output

The `status` command now displays the current power profile by reading `/sys/firmware/acpi/platform_profile`, giving users insight into power usage.

New Features
- Output power profile status to the console.

Enhancements
- Enriches status command with additional hardware information.
This commit is contained in:
sankalp committed 2026-03-11 23:37:03 +05:45
1 parent c0481b1149
commit 2d03067f0e
1 file changed
+7
+7
View File
@@ -33,4 +33,11 @@ pub fn execute() {
}
}
}
// Power Profile Status
if let Ok(profile) = fs::read_to_string("/sys/firmware/acpi/platform_profile") {
println!("Power Profile: {}", profile.trim());
} else {
println!("Power Profile: Unknown");
}
}