uuid_cli 0.1.2

A command line utility for generating UUIDs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::Parser;
use uuid::Uuid;
use uuid_cli::{format_uuids, Cli};

fn main() {
    let cli = Cli::parse();

    let uuids: Vec<Uuid> = std::iter::repeat_with(Uuid::new_v4)
        .take(cli.count)
        .collect();

    println!(
        "{}",
        format_uuids(uuids, cli.format, cli.case.uuid_format())
    );
}