rust-roll 0.1.0

A command-line dice roller for tabletop RPGs, following the D&D 5e rules
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Command line entry point

pub mod args;
pub mod output;

use clap::Parser;

fn main() {
    let cli = args::Cli::parse();
    let roll_type = cli.roll_type();
    let rolls = rust_roll::roller::roll(roll_type, &mut rand::rng());

    println!("{}", output::format_rolls(&roll_type, &rolls));
}