feat: GPU-Wahl in Oberfläche, CLI und Status, Doku und Klicktests (#1272)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 17:43:00 +01:00
parent 16311679dc
commit d205c14343
13 changed files with 237 additions and 27 deletions

View File

@ -65,6 +65,20 @@ impl GpuWahl {
}
}
/// Beschreibung für Menschen, mit den GPUs des Profils.
pub fn beschreibung(self, gpus: &[u32]) -> String {
let liste = gpus
.iter()
.map(u32::to_string)
.collect::<Vec<_>>()
.join(", ");
match self {
Self::Fest => format!("fest {liste}"),
Self::Auto => format!("automatisch unter {liste}"),
Self::Alle => "automatisch, alle Grafikkarten".to_string(),
}
}
pub fn parse(text: &str) -> Option<Self> {
match text {
"fest" => Some(Self::Fest),