Asagiri

Cost Report · Asagiri CLI

Historique des coûts

CLI path: asa cost report

When to use

Use cost when reconciling SQLite-backed telemetry with pricing tables declared in .asagiri/config.yaml or when slicing spend over a bounded recency window.

Original CLI synopsis: Historique des coûts

Usage

asa cost report [flags]

Options

FlagScopeDefaultDescription
--dry-runInheritedfalseSimuler les exécutions sans lancer d'agent ni commandes externes
--sinceLocal7dFenêtre (ex. 7d)

Examples

asa cost report

Wire richer samples through cobra.Command.Example when the happy path warrants copy/paste-friendly automation beyond this scaffold.

What happens internally

  • Parses the --since shorthand window, opens the SQLite telemetry store associated with $PWD, and aggregates totals through telemetry.SummarizeSince.

Failure modes

  • Cobra rejects unknown flags or arity mismatches before any repository side effects occur.
  • Asagiri cannot resolve scaffolding when the command is invoked outside an initialised checkout.
  • SQLite contention or corrupted telemetry prevent summarisation queries from completing.
  • Malformed --since payloads fail fast before aggregates are queried.