- 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
14 lines
373 B
C#
14 lines
373 B
C#
namespace Sdt.Cli;
|
|
|
|
public sealed record CliInvocation(
|
|
string Command,
|
|
string? Subcommand,
|
|
IReadOnlyList<string> Positionals,
|
|
IReadOnlyDictionary<string, string?> Options)
|
|
{
|
|
public bool HasOption(string name) => Options.ContainsKey(name);
|
|
|
|
public string? GetOption(string name)
|
|
=> Options.TryGetValue(name, out var value) ? value : null;
|
|
}
|