Skip to main content

Module cli

Module cli 

Source
Expand description

The clap-4 command surface for btctax, extracted into the library so tooling (the xtask man-page generator) can obtain the Command via Cli::command() (clap::CommandFactory). The binary (main.rs) is a thin dispatch over these types.

FILE-FORMAT DOCS — SINGLE SOURCE OF TRUTH: the long-help (/// doc-comments with #[arg(verbatim_doc_comment)]) on the file/format-taking args below is rendered BOTH into --help (clap) AND into the per-subcommand man page (clap_mangen), zero drift. Formats were read from the writers, never from stale comments: export CSVs from render.rs, the classify-raw serde shape from btctax-core::EventPayload, the key armor from btctax-store::Vault::backup_key, the selections header from cmd::reconcile::import_selections, the lot pick from eventref::parse_lot_pick.

Structs§

Cli

Enums§

Command
FeeArg
FilingStatusArg
MethodArg
MethodLotArg
Optimize
optimize subcommand tree. Task 9 adds Run; Task 10 adds Accept; Task 11 adds Consult.
OutKindArg
Reconcile
SelfTransferActionArg