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:
32
Commands/ShowCommand.cs
Normal file
32
Commands/ShowCommand.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user