Shows users how many tokens RTK has saved them over time.
// Source: https://github.com/rtk-ai/rtk | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Shows users how many tokens RTK has saved them over time.
use crate::core::display_helpers::{format_duration, print_period_table};
use crate::core::tracking::{DayStats, MonthStats, Tracker, WeekStats};
use crate::core::utils::{format_tokens, truncate};
use crate::hooks::hook_check;
use anyhow::{Context, Result};
use chrono::Local;
use colored::Colorize;
use serde::Serialize;
use std::io::IsTerminal;
use std::path::PathBuf;
#[allow(clippy::too_many_arguments)]
pub fn run(
project: bool, // added: per-project scope flag
graph: bool,
history: bool,
quota: bool,
tier: &st
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key