Move logic out of main.rs to lib.rs
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Arnaud (Arhuman) ASSAD 2022-05-08 09:32:23 +02:00
parent 5c2c16d057
commit 2e3c46f5cd
2 changed files with 11 additions and 7 deletions

8
src/lib.rs Normal file
View File

@ -0,0 +1,8 @@
use clap::Parser;
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
pub struct Arguments {
#[clap(short, long, default_value = ".carman")]
conf_file: String,
}

View File

@ -1,12 +1,8 @@
use carman::Arguments;
use clap::Parser;
/// Simple program to greet a person
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
struct Arguments {
#[clap(short, long, default_value = ".carman")]
conf_file: String,
}
/// Carman code deployment Daemon
fn main() {
let args = Arguments::parse();