22 lines
409 B
Rust
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();
|
|
});
|