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
Events
events subcommand tree (UX-P4-11): read-only ref discoverability.
FeeArg
FilingStatusArg
FormArg
One official form in the export-irs-pdf packet (the --forms opt-in filter).
IncomeCmd
Full-return (v1) input subcommands (SPEC §4 / recon-04 §6). v1 ships the TOML bulk-import path + a JSON show; incremental per-field subcommands (add-w2, …) are a follow-on.
MethodArg
MethodLotArg
Optimize
optimize subcommand tree. Task 9 adds Run; Task 10 adds Accept; Task 11 adds Consult.
OutKindArg
Pseudo
reconcile pseudo <action> — the pseudo-reconcile mode sub-verbs (sub-project 2).
PseudoKindArg
The pseudo-default TYPE filter for reconcile pseudo approve --kind.
Reconcile
SelfTransferActionArg
WhatIf
what-if subcommand tree (task #43). READ-ONLY hypothetical-transaction tax planning: NOTHING is filed, appended, or persisted. Mirrors the optimize consult shape, plus an ad-hoc TaxProfile (so you can plan without tax-profile set).