-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(visual): create basic commands for visual
- Loading branch information
Showing
1 changed file
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |