1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-02-03 13:11:36 +02:00
rustlings/src/main.rs
2018-05-16 15:30:30 +02:00

23 lines
421 B
Rust

#[macro_use]
extern crate quicli;
extern crate ansi_term;
use ansi_term::Color::Yellow;
use quicli::prelude::*;
#[macro_use]
mod macros;
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();
});