Documentation
¶
Overview ¶
Package stats implements the ctx system stats subcommand.
It displays per-session token usage statistics from stats JSONL files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx system stats" subcommand.
Returns:
- *cobra.Command: Configured stats subcommand
func Run ¶
Run executes the stats subcommand, reading and displaying per-session token usage statistics from JSONL state files. Supports filtering by session, limiting output count, JSON output, and live follow mode.
Parameters:
- cmd: Cobra command for flag access and output
Returns:
- error: Non-nil on stats directory read failure
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.