Added full command implementations for battery limit/status, GPU management (cache operations, mode switching, NVIDIA handling), and a status reporter that prints GPU mode and battery details. Introduced module registration and placeholder power command. New Features - Battery command support (`limit`, `status`) - GPU command suite (`cache-delete`, `cache-query`, `reset`, `reset-sddm`, `integrated`, `hybrid`, `nvidia`) - Status command output showing GPU mode and battery information - Power command placeholder scaffold Enhancements - Unified command registration via `mod.rs` - Added root checks and file utilities for cache and config operations - Integrated logging infrastructure Bug Fixes: none
13 lines
326 B
Rust
13 lines
326 B
Rust
use crate::cli::BatteryCommands;
|
|
|
|
pub fn execute(command: &BatteryCommands) {
|
|
match command {
|
|
BatteryCommands::Limit { percent } => {
|
|
println!("Setting battery limit to {}%", percent);
|
|
}
|
|
BatteryCommands::Status => {
|
|
println!("Battery status placeholder");
|
|
}
|
|
}
|
|
}
|