Created
December 4, 2016 16:27
-
-
Save bwinton/3779293609c5be567fa3992b23429c09 to your computer and use it in GitHub Desktop.
Rust metaprogramming?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod q01; | |
mod q02; | |
mod q03; | |
mod q04; | |
use std::env; | |
#[macro_use] extern crate itertools; | |
extern crate regex; | |
fn main() { | |
let mut args: Vec<_> = env::args().skip(1).collect(); | |
if args.len() == 0 { | |
args = vec![String::from("*")]; | |
} | |
for argument in args { | |
q01::select(&argument); | |
q02::select(&argument); | |
q03::select(&argument); | |
q04::select(&argument); | |
println!(""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment