2018-05-14 19:13:13 +02:00
|
|
|
#[macro_use]
|
|
|
|
extern crate quicli;
|
2018-05-06 18:59:50 +02:00
|
|
|
extern crate ansi_term;
|
|
|
|
|
2018-05-22 22:26:09 +02:00
|
|
|
use ansi_term::Color::Yellow;
|
2018-05-16 15:30:30 +02:00
|
|
|
use quicli::prelude::*;
|
2018-05-14 18:41:58 +02:00
|
|
|
|
2018-05-22 22:26:09 +02:00
|
|
|
mod helpers;
|
2018-05-14 18:41:58 +02:00
|
|
|
mod about_variables;
|
2018-05-06 18:59:50 +02:00
|
|
|
|
|
|
|
#[derive(Debug, StructOpt)]
|
|
|
|
struct Cli {
|
|
|
|
exercise: Option<String>,
|
|
|
|
}
|
|
|
|
|
2018-05-14 19:13:13 +02:00
|
|
|
main!(|args: Cli| if let Some(e) = args.exercise {
|
|
|
|
println!("selected {}", e);
|
|
|
|
} else {
|
2018-05-16 15:27:57 +02:00
|
|
|
println!("Welcome to {}!\n", Yellow.paint("Rustlings"));
|
2018-05-16 15:23:14 +02:00
|
|
|
about_variables::exec();
|
2018-05-06 18:59:50 +02:00
|
|
|
});
|