leetctl 0.4.0

LeetCode command-line interface in Rust, with curated problem sets and filtered random picking.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use leetctl::cli;
use std::process::ExitCode;
use tokio::runtime::Builder;

fn main() -> ExitCode {
    if let Err(err) = Builder::new_multi_thread()
        .enable_all()
        .build()
        .expect("Build tokio runtime failed")
        .block_on(cli::main())
    {
        // Display, not Debug: every variant of `Error` carries a written-for-humans message, and
        // `{:?}` prints the variant name and a quoted payload instead.
        eprintln!("{err}");
        return ExitCode::FAILURE;
    }
    ExitCode::SUCCESS
}