Merge branch 'argparse' into 'next'

Add argument parser for the conduit executable

Closes #285

See merge request famedly/conduit!385
merge-requests/551/head^2
Charles Hall 4 months ago
commit 741ca63e94

@ -0,0 +1,13 @@
//! Integration with `clap`
use clap::Parser;
/// Command line arguments
#[derive(Parser)]
#[clap(about, version)]
pub struct Args {}
/// Parse command line arguments into structured data
pub fn parse() -> Args {
Args::parse()
}

@ -1,4 +1,5 @@
pub mod api;
pub mod clap;
mod config;
mod database;
mod service;

@ -44,6 +44,8 @@ static GLOBAL: Jemalloc = Jemalloc;
#[tokio::main]
async fn main() {
clap::parse();
// Initialize config
let raw_config =
Figment::new()

Loading…
Cancel
Save