wipe/src/main.rs

26 lines
593 B
Rust
Raw Normal View History

2022-04-02 15:19:48 +00:00
use clap::Parser;
2022-04-03 12:44:26 +00:00
use crate::color::factory::ColorEnum;
use crate::fill::factory::FillModeEnum;
2022-04-02 15:19:48 +00:00
2022-04-03 12:44:26 +00:00
mod color;
2022-04-02 15:20:52 +00:00
mod char;
2022-04-02 15:25:35 +00:00
mod fill;
mod vec;
2022-04-03 14:03:28 +00:00
mod array;
2022-04-03 14:53:21 +00:00
mod render;
2022-04-02 15:19:48 +00:00
#[derive(Parser)]
#[clap(author = "Rico Riedel", version = "0.1.0", about = "Wipe your terminal with a random animation.")]
struct Args {
2022-04-02 15:25:35 +00:00
#[clap(short, long, help = "Add fill mode", arg_enum)]
fill: Vec<FillModeEnum>,
2022-04-03 12:44:26 +00:00
#[clap(short, long, help = "Add color color", arg_enum)]
pallet: Vec<ColorEnum>,
2022-04-02 15:20:52 +00:00
#[clap(long, default_value = ".-+%#", help = "Set chars")]
chars: String
2022-04-02 15:19:48 +00:00
}
2022-04-02 15:05:49 +00:00
fn main() {
2022-04-03 12:44:26 +00:00
Args::parse();
2022-04-02 15:05:49 +00:00
}