Create labadoor-auth, for wrapping storage backends

This commit is contained in:
George Kaklamanos 2023-11-22 18:18:51 +02:00
parent 104d8a862d
commit 5013fdcf1c
Signed by: gkaklas
GPG key ID: C0CAB8A6BDC9399D
7 changed files with 58 additions and 0 deletions

View file

@ -9,6 +9,7 @@ labadoor-telegram = { path = "../labadoor-telegram", optional = true }
labadoor-matrix = { path = "../labadoor-matrix", optional = true }
labadoor-csv = { path = "../labadoor-csv", optional = true }
labadoor-gpio = { path = "../labadoor-gpio", optional = true }
labadoor-auth = { path = "../labadoor-auth", optional = true }
labadoor-acl = { path = "../labadoor-acl" }
serde = { version = "1.0.164", features = ["derive"] }
config = "0.13.3"
@ -18,3 +19,4 @@ telegram = ["dep:labadoor-telegram"]
matrix = ["dep:labadoor-matrix"]
csv = ["dep:labadoor-csv"]
gpio = ["dep:labadoor-gpio"]
auth = ["dep:labadoor-auth"]

View file

@ -17,6 +17,8 @@ pub enum Command {
CSV(CSV),
#[cfg(feature = "gpio")]
GPIO(GPIO),
#[cfg(feature = "auth")]
Auth(labadoor_auth::cli::Cli),
}
#[cfg(feature = "telegram")]

View file

@ -34,5 +34,9 @@ fn main() {
let gpio = config.get::<cli::GPIO>("gpio").unwrap().to_config();
labadoor_gpio::gpio(gpio);
}
#[cfg(feature = "auth")]
cli::Command::Auth(cli) => {
labadoor_auth::auth(cli);
}
}
}