wipe/src/main.rs

21 lines
530 B
Rust
Raw Normal View History

2022-04-02 15:19:48 +00:00
use clap::Parser;
use rand::rngs::OsRng;
use crate::pallet::{choose_pallet, create_pallet, PalletEnum};
mod pallet;
#[derive(Parser)]
#[clap(author = "Rico Riedel", version = "0.1.0", about = "Wipe your terminal with a random animation.")]
struct Args {
#[clap(short, long, help = "Add color pallet", arg_enum)]
pallet: Vec<PalletEnum>,
}
2022-04-02 15:05:49 +00:00
fn main() {
2022-04-02 15:19:48 +00:00
let args = Args::parse();
let rng = &mut OsRng::default();
let pallet_key = choose_pallet(args.pallet, rng);
let pallet = create_pallet(pallet_key);
2022-04-02 15:05:49 +00:00
}