chore: Introduce Qodana static analysis configuration and apply minor code formatting and C# 12 collection expressions.
This commit is contained in:
@@ -37,7 +37,7 @@ public static class SkillCommand
|
||||
private static async Task ExecuteListAsync()
|
||||
{
|
||||
SkillRegistry.Initialize();
|
||||
|
||||
|
||||
var table = new Table().Border(TableBorder.Rounded);
|
||||
table.AddColumn("Name");
|
||||
table.AddColumn("Action");
|
||||
@@ -68,13 +68,13 @@ public static class SkillCommand
|
||||
private static async Task ExecuteAddAsync()
|
||||
{
|
||||
AnsiConsole.MarkupLine("[bold blue]Add a new Dynamic Skill[/]");
|
||||
|
||||
|
||||
var name = AnsiConsole.Ask<string>("Skill [green]Name[/]:");
|
||||
var description = AnsiConsole.Ask<string>("Skill [green]Description[/]:");
|
||||
|
||||
|
||||
var hotwordsStr = AnsiConsole.Ask<string>("Comma-separated [green]Hotwords[/] (e.g. 'System my skill, System do skill'):");
|
||||
var hotwords = hotwordsStr.Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
|
||||
|
||||
|
||||
var action = AnsiConsole.Prompt(
|
||||
new SelectionPrompt<string>()
|
||||
.Title("What is the [green]Action[/] type?")
|
||||
|
||||
Reference in New Issue
Block a user