main: Use labadoor-auth instead of the CSV module directly

This commit is contained in:
George Kaklamanos 2023-11-22 19:44:10 +02:00
parent 2caad2a5ef
commit e7c34865c5
No known key found for this signature in database
GPG key ID: C0CAB8A6BDC9399D
6 changed files with 41 additions and 30 deletions

View file

@ -1,4 +1,5 @@
use clap::{Parser, ValueEnum};
use serde::Deserialize;
#[derive(Parser, Debug)]
pub struct Cli {
@ -29,3 +30,11 @@ pub struct Open {
pub fn parse() -> Cli {
Cli::parse()
}
#[cfg(feature = "csv")]
#[derive(Deserialize, Parser, Debug)]
pub struct CSV {
#[clap(short, long)]
#[arg(default_value = "Some(String::from(\"/etc/labadoor\"))")]
pub path: String,
}