feat: Implement history tracking with new CLI commands for viewing past transcripts and usage statistics.
This commit is contained in:
18
Program.cs
18
Program.cs
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user