SDT/Cli/CliInvocation.cs
stan44 d5a74be368 Add guided CLI workflows and config commands
- 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
2026-03-29 22:22:48 -05:00

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;
}