rustlings/src/main.rs
2018-05-22 22:26:09 +02:00

22 lines
409 B
Rust

#[macro_use]
extern crate quicli;
extern crate ansi_term;
use ansi_term::Color::Yellow;
use quicli::prelude::*;
mod helpers;
mod about_variables;
#[derive(Debug, StructOpt)]
struct Cli {
exercise: Option<String>,
}
main!(|args: Cli| if let Some(e) = args.exercise {
println!("selected {}", e);
} else {
println!("Welcome to {}!\n", Yellow.paint("Rustlings"));
about_variables::exec();
});