pitbox 0.1.0

An F1 CLI that can output standings, results, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;
use pitbox::AppResult;

use cli::{Cli, Command};

mod cli;
mod commands;
mod output;

fn main() -> AppResult<()> {
    let args = Cli::parse();

    match args.command {
        Command::Standings(a) => commands::run_standings(&a),
        Command::Results(a) => commands::run_race_results(&a),
        Command::Driver(a) => commands::run_driver_results(&a),
    }
}