This repository has been archived on 2023-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
rustlings-exercises-completed/src/main.rs

22 lines
417 B
Rust
Raw Normal View History

2018-05-06 11:59:50 -05:00
#[macro_use] extern crate quicli;
extern crate ansi_term;
use quicli::prelude::*;
use ansi_term::Colour::{Red, Yellow};
#[derive(Debug, StructOpt)]
struct Cli {
exercise: Option<String>,
}
main!(|args: Cli| {
match args.exercise {
Some(e) => {
println!("selected {}", e);
}
None => {
println!("Welcome to {}", Yellow.paint("Rustlings"));
}
}
});