- introduce `sdt` subcommands for run, debug, setup, env, favorite, and explain - add project/workspace discovery plus config bootstrap and migration helpers - expand tests for CLI parsing, project role detection, and headless flows
16 lines
356 B
C#
16 lines
356 B
C#
using Sdt.Cli;
|
|
using Sdt.Tui;
|
|
using Spectre.Console;
|
|
|
|
try
|
|
{
|
|
var app = new CliApplication();
|
|
return await app.RunAsync(Environment.GetCommandLineArgs().Skip(1).ToArray());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
AnsiConsole.MarkupLine(Theme.Fail($"Fatal: {ex.Message}"));
|
|
AnsiConsole.WriteException(ex, ExceptionFormats.ShortenEverything);
|
|
return 1;
|
|
}
|