Skip to content

Commit

Permalink
feat(visual): create basic commands for visual
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 29, 2021
1 parent 7a2e338 commit fd21455
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/bin/visual.rs
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
fn main() {}
use clap::{App, Arg};

const VERSION: &'static str = env!("CARGO_PKG_VERSION");

fn main() {
let matches = App::new("Coco Visual")
.version(VERSION)
.author("Inherd Group")
.about("A DevOps Efficiency Analysis and Auto-suggestion Tool.")
.arg(
Arg::with_name("export")
.short("e")
.long("export")
.help("export static files"),
)
.arg(
Arg::with_name("server")
.short("s")
.long("server")
.help("run visual server"),
)
.get_matches();

if let Some(i) = matches.value_of("export") {
println!("Export Static: {}", i);
}

if let Some(i) = matches.value_of("server") {
println!("Run server: {}", i);
}
}

0 comments on commit fd21455

Please sign in to comment.