1
0

feat: Add SetupCommand to run an interactive setup wizard.

This commit is contained in:
2026-03-04 12:10:14 +01:00
parent e6a607f3c4
commit c6b87a5ce7
2 changed files with 14 additions and 0 deletions

13
Commands/SetupCommand.cs Normal file
View File

@@ -0,0 +1,13 @@
namespace AnchorCli.Commands;
public class SetupCommand : ICommand
{
public string Name => "setup";
public string Description => "Run interactive setup wizard to configure API key and model";
public Task ExecuteAsync(string[] args, CancellationToken ct)
{
SetupTui.Run();
return Task.CompletedTask;
}
}

View File

@@ -183,6 +183,7 @@ commandRegistry.Register(new HelpCommand(commandRegistry));
commandRegistry.Register(new ClearCommand());
commandRegistry.Register(new StatusCommand(model, endpoint));
commandRegistry.Register(new CompactCommand(compactor, history));
commandRegistry.Register(new SetupCommand());
var commandDispatcher = new CommandDispatcher(commandRegistry);