1
0

chore: Introduce Qodana static analysis configuration and apply minor code formatting and C# 12 collection expressions.

This commit is contained in:
2026-03-01 20:07:20 +01:00
parent ec575ab5f9
commit 15f9647f8a
24 changed files with 344 additions and 80 deletions

View File

@@ -10,9 +10,9 @@ public class Program
{
var rootCommand = new RootCommand("Toak: High-speed Linux Dictation");
var pipeOption = new Option<bool>(new[] { "--pipe", "-p" }, "Output transcription to stdout instead of typing");
var pipeOption = new Option<bool>(["--pipe", "-p"], "Output transcription to stdout instead of typing");
var copyOption = new Option<bool>("--copy", "Copy to clipboard instead of typing");
var verboseOption = new Option<bool>(new[] { "--verbose", "-v" }, "Enable detailed debug logging");
var verboseOption = new Option<bool>(["--verbose", "-v"], "Enable detailed debug logging");
rootCommand.AddGlobalOption(verboseOption);
@@ -84,7 +84,7 @@ public class Program
// 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 numArg = new Option<int>(["-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");