69 releases (19 breaking)

0.26.6 Feb 4, 2025
0.25.8 Jan 28, 2025
0.23.3 Dec 24, 2024
0.21.2 Nov 28, 2024
0.8.4 Mar 22, 2024

#473 in Command line utilities

Download history 20/week @ 2024-10-30 32/week @ 2024-11-06 1061/week @ 2024-11-20 425/week @ 2024-11-27 293/week @ 2024-12-04 67/week @ 2024-12-11 559/week @ 2024-12-18 189/week @ 2024-12-25 142/week @ 2025-01-01 934/week @ 2025-01-08 51/week @ 2025-01-15 868/week @ 2025-01-22 714/week @ 2025-01-29 286/week @ 2025-02-05 91/week @ 2025-02-12

1,965 downloads per month

GPL-3.0-or-later

230KB
6K SLoC

Documentation-only module containing the help pages for the CLI tool.

The Args struct contains the top level options. The Action enum contains the top level subcommands. Beyond that, *Args structs contain options for that level, and *Action enums contain subcommands below that level. In structs, field names are generally transformed to options using by being kebab-cased.

For example, caddy::configure_tamanu::ConfigureTamanuArgs represents the subcommand:

$ bestool caddy configure-tamanu

and its fields:

pub struct ConfigureTamanuArgs {
    pub path: PathBuf,
    pub print: bool,
    pub domain: String,
    pub api_port: NonZeroU16,
    pub api_version: String,
    pub web_version: String,
    pub email: Option<String>,
    pub zerossl_api_key: Option<String>,
}

are transformed into these options:

--path
--print
--domain
--api-port
--api-version
--web-version
--email
--zerossl-api-key

Sometimes more information is contained in the #[clap()] attributes like defaults and positionals, and these can be seen by clicking the source link at the top right.

Dependencies

~15–72MB
~1M SLoC