Move logic out of main.rs to lib.rs
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5c2c16d057
commit
2e3c46f5cd
|
@ -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,
|
||||||
|
}
|
10
src/main.rs
10
src/main.rs
|
@ -1,12 +1,8 @@
|
||||||
|
use carman::Arguments;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
/// Simple program to greet a person
|
/// Carman code deployment Daemon
|
||||||
#[derive(Parser, Debug)]
|
|
||||||
#[clap(author, version, about, long_about = None)]
|
|
||||||
struct Arguments {
|
|
||||||
#[clap(short, long, default_value = ".carman")]
|
|
||||||
conf_file: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args = Arguments::parse();
|
let args = Arguments::parse();
|
||||||
|
|
Loading…
Reference in New Issue