Add Clap and base config
This commit is contained in:
10
src/infra/cli.rs
Normal file
10
src/infra/cli.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use clap::Clap;
|
||||
|
||||
/// lldap is a lightweight LDAP server
|
||||
#[derive(Debug, Clap)]
|
||||
#[clap(version = "0.1", author = "The LLDAP team")]
|
||||
pub struct CLIOpts;
|
||||
|
||||
pub fn init() -> CLIOpts {
|
||||
CLIOpts::parse()
|
||||
}
|
||||
6
src/infra/configuration.rs
Normal file
6
src/infra/configuration.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
#[derive(Debug, Default)]
|
||||
pub struct Configuration;
|
||||
|
||||
pub fn init() -> Configuration {
|
||||
Configuration::default()
|
||||
}
|
||||
2
src/infra/mod.rs
Normal file
2
src/infra/mod.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
pub mod cli;
|
||||
pub mod configuration;
|
||||
Reference in New Issue
Block a user