mirror of
https://github.com/ricoriedel/wipe.git
synced 2024-11-22 16:06:38 +00:00
Reset main
This commit is contained in:
parent
4acb26b702
commit
857b7bc71f
20
src/main.rs
20
src/main.rs
@ -1,10 +1,8 @@
|
|||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use rand::rngs::OsRng;
|
use crate::color::factory::ColorEnum;
|
||||||
use crate::char::CharSampler;
|
use crate::fill::factory::FillModeEnum;
|
||||||
use crate::fill::FillModeEnum;
|
|
||||||
use crate::pallet::{choose_pallet, create_pallet, PalletEnum};
|
|
||||||
|
|
||||||
mod pallet;
|
mod color;
|
||||||
mod char;
|
mod char;
|
||||||
mod fill;
|
mod fill;
|
||||||
mod vec;
|
mod vec;
|
||||||
@ -14,18 +12,12 @@ mod vec;
|
|||||||
struct Args {
|
struct Args {
|
||||||
#[clap(short, long, help = "Add fill mode", arg_enum)]
|
#[clap(short, long, help = "Add fill mode", arg_enum)]
|
||||||
fill: Vec<FillModeEnum>,
|
fill: Vec<FillModeEnum>,
|
||||||
#[clap(short, long, help = "Add color pallet", arg_enum)]
|
#[clap(short, long, help = "Add color color", arg_enum)]
|
||||||
pallet: Vec<PalletEnum>,
|
pallet: Vec<ColorEnum>,
|
||||||
#[clap(long, default_value = ".-+%#", help = "Set chars")]
|
#[clap(long, default_value = ".-+%#", help = "Set chars")]
|
||||||
chars: String
|
chars: String
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args = Args::parse();
|
Args::parse();
|
||||||
let rng = &mut OsRng::default();
|
|
||||||
|
|
||||||
let chars = CharSampler::new(args.chars);
|
|
||||||
|
|
||||||
let pallet_key = choose_pallet(args.pallet, rng);
|
|
||||||
let pallet = create_pallet(pallet_key);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user