AniMe: adding --on and --off options to turn on/off (and accept/reject write requests)

This commit is contained in:
Asere
2020-10-22 14:09:05 +02:00
parent a23c51e5db
commit 5d06c87943
5 changed files with 100 additions and 31 deletions

View File

@@ -214,8 +214,7 @@ impl Default for SetAuraBuiltin {
}
}
#[derive(Debug, Options)]
#[derive(Options)]
pub struct AniMeLeds {
#[options(help = "print help message")]
help: bool,
@@ -231,8 +230,8 @@ impl AniMeLeds {
}
}
#[derive(Debug, Options)]
#[derive(Options)]
pub enum AniMeActions {
#[options(help = "change all leds brightness")]
Leds(AniMeLeds)
Leds(AniMeLeds),
}