csusage-cli 0.0.1

Coding agent CLI usage reports (ccusage fork with Claude Science support)
Documentation
  • Coverage
  • 2%
    3 out of 150 items documented0 out of 0 items with examples
  • Size
  • Source code size: 13.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 1s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • maokangkun

ccusage-cli

The plain argument types the runtime shares: SharedArgs, the per-command argument structs, and the enums the reports switch on.

This crate deliberately has no dependencies, no build script, and no embedded assets. ccusage-core and all 17 adapters depend on it, so anything heavier would sit on every crate's critical path — that is why the parser, the help renderer, and the help JSON live in ccusage-cli-parser instead.

Public surface

  • types::AgentCommandArgs
  • types::AgentReportKind
  • types::BlocksArgs
  • types::CliConfig
  • types::CodexSpeed
  • types::Command
  • types::CostMode
  • types::CostSource
  • types::DATE_BOUND_FORMATS
  • types::DailyArgs
  • types::NamedPiStore
  • types::NoConfig
  • types::OPENCODE_AGENT_REPORTS
  • types::PricingOverride
  • types::STANDARD_AGENT_REPORTS
  • types::SessionArgs
  • types::SharedArgs
  • types::SortOrder
  • types::StatuslineArgs
  • types::VisualBurnRate
  • types::WeekDay
  • types::WeeklyArgs
  • types::normalize_date_bound

Depends on

No dependencies.

Build layer

Built in the foundation Crane artifact layer, so a change here recompiles every adapter. It is small and dependency-free, so that is cheap.