forked from gkaklas/labadoor
main: Use the new CSV struct and ACL trait
This commit is contained in:
parent
3923654c94
commit
96ef1d6a4c
2 changed files with 6 additions and 6 deletions
|
@ -9,6 +9,7 @@ labadoor-telegram = { path = "../labadoor-telegram", optional = true }
|
||||||
labadoor-matrix = { path = "../labadoor-matrix", optional = true }
|
labadoor-matrix = { path = "../labadoor-matrix", optional = true }
|
||||||
labadoor-csv = { path = "../labadoor-csv", optional = true }
|
labadoor-csv = { path = "../labadoor-csv", optional = true }
|
||||||
labadoor-gpio = { path = "../labadoor-gpio", optional = true }
|
labadoor-gpio = { path = "../labadoor-gpio", optional = true }
|
||||||
|
labadoor-acl = { path = "../labadoor-acl" }
|
||||||
serde = { version = "1.0.164", features = ["derive"] }
|
serde = { version = "1.0.164", features = ["derive"] }
|
||||||
config = "0.13.3"
|
config = "0.13.3"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
use labadoor_acl::ACL;
|
||||||
mod cli;
|
mod cli;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -25,12 +26,10 @@ fn main() {
|
||||||
#[cfg(feature = "csv")]
|
#[cfg(feature = "csv")]
|
||||||
cli::Command::CSV(_) => {
|
cli::Command::CSV(_) => {
|
||||||
let csv = config.get::<cli::CSV>("csv").unwrap();
|
let csv = config.get::<cli::CSV>("csv").unwrap();
|
||||||
labadoor_csv::csv(
|
let c = labadoor_csv::CSV {
|
||||||
csv.path.unwrap(),
|
path: csv.path.unwrap(),
|
||||||
csv.method.unwrap(),
|
};
|
||||||
csv.identifier.unwrap(),
|
c.auth_user(csv.method, csv.identifier, csv.resource_shortcut);
|
||||||
csv.resource_shortcut.unwrap(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
#[cfg(feature = "gpio")]
|
#[cfg(feature = "gpio")]
|
||||||
cli::Command::GPIO(_) => {
|
cli::Command::GPIO(_) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue