1
0

feat: Implement new commands for recording control, configuration management, latency testing, and status display, updating program entry and project references.

This commit is contained in:
2026-02-27 01:12:23 +01:00
parent d910fe1441
commit 482fe84eb1
8 changed files with 494 additions and 368 deletions

32
Commands/ShowCommand.cs Normal file
View File

@@ -0,0 +1,32 @@
using System.Threading.Tasks;
using Spectre.Console;
using Toak.Configuration;
namespace Toak.Commands;
public static class ShowCommand
{
public static async Task ExecuteAsync(bool verbose)
{
Toak.Core.Logger.Verbose = verbose;
var config = ConfigManager.LoadConfig();
var table = new Table();
table.AddColumn("Setting");
table.AddColumn("Value");
table.AddRow("Groq API Key", string.IsNullOrEmpty(config.GroqApiKey) ? "[red]Not Set[/]" : "[green]Set[/]");
table.AddRow("LLM Model", $"[blue]{config.LlmModel}[/]");
table.AddRow("Whisper Model", $"[blue]{config.WhisperModel}[/]");
table.AddRow("Spoken Language", $"[yellow]{(string.IsNullOrEmpty(config.WhisperLanguage) ? "Auto" : config.WhisperLanguage)}[/]");
table.AddRow("Typing Backend", config.TypingBackend);
table.AddRow("Active Skills", string.Join(", ", config.ActiveSkills));
table.AddRow("Style Mode", config.StyleMode);
table.AddRow("Punctuation Module", config.ModulePunctuation.ToString());
table.AddRow("Technical Sanitization", config.ModuleTechnicalSanitization.ToString());
table.AddRow("Bullet Points", config.StructureBulletPoints.ToString());
table.AddRow("Smart Paragraphing", config.StructureSmartParagraphing.ToString());
AnsiConsole.Write(table);
}
}