1
0

feat: Implement history tracking with new CLI commands for viewing past transcripts and usage statistics.

This commit is contained in:
2026-02-28 14:06:58 +01:00
parent eadbd8d46d
commit a08838fbc4
12 changed files with 349 additions and 4 deletions

View File

@@ -58,6 +58,24 @@ public class Program
configCmd.SetHandler(ConfigUpdaterCommand.ExecuteAsync, keyArg, valArg, verboseOption);
rootCommand.AddCommand(configCmd);
// Stats Command
var statsCmd = new Command("stats", "Display usage statistics and analytics");
statsCmd.SetHandler(StatsCommand.ExecuteAsync, verboseOption);
rootCommand.AddCommand(statsCmd);
// History Command
var historyCmd = new Command("history", "Display recent transcriptions with timestamps");
var numArg = new Option<int>(new[] { "-n", "--num" }, () => 10, "Number of recent entries to show");
var grepArg = new Option<string>("--grep", "Search through transcription history");
var exportArg = new Option<string>("--export", "Export transcription history to a Markdown file");
var shredArg = new Option<bool>("--shred", "Securely delete transcription history");
historyCmd.AddOption(numArg);
historyCmd.AddOption(grepArg);
historyCmd.AddOption(exportArg);
historyCmd.AddOption(shredArg);
historyCmd.SetHandler(HistoryCommand.ExecuteAsync, numArg, grepArg, exportArg, shredArg, verboseOption);
rootCommand.AddCommand(historyCmd);
// Skill Command
rootCommand.AddCommand(SkillCommand.CreateCommand(verboseOption));