1 instantiation of ParseResult
System.CommandLine (1)
Parsing\ParseOperation.cs (1)
65return new(
1731 references to ParseResult
AnalyzeCiFailure (1)
Program.cs (1)
18var result = AnalysisCommands.CreateRootCommand(createGitHubClient).Parse(args, new ParserConfiguration { ResponseFileTokenReplacer = null });
aspire (217)
Commands\AddCommand.cs (1)
79protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\AgentInitCommand.cs (3)
209internal Task<CommandResult> ExecuteCommandAsync(ParseResult parseResult, CancellationToken cancellationToken) 257protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 299private async Task<DirectoryInfo> PromptForWorkspaceRootAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\AgentMcpCommand.cs (2)
96internal Task<CommandResult> ExecuteCommandAsync(ParseResult parseResult, CancellationToken cancellationToken) 101protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\AgentTelemetryCommand.cs (3)
120protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 163private async Task RecordAsync(ParseResult parseResult) 206private List<(string Name, string Value)> CollectValidTags(ParseResult parseResult)
Commands\ApiGetCommand.cs (1)
46protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\ApiListCommand.cs (1)
48protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\ApiSearchCommand.cs (1)
60protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\AppHostLauncher.cs (2)
100internal static bool? GetExplicitIsolated(ParseResult parseResult) 119ParseResult parseResult,
Commands\BaseCommand.cs (7)
88SetAction((Func<ParseResult, CancellationToken, Task<int>>)(async (parseResult, cancellationToken) => 112internal void SelectForExecution(ParseResult parseResult) 125internal virtual void PrepareForExecution(ParseResult parseResult) 129private async Task<int> HandleCommandAsync(ParseResult parseResult, CancellationToken cancellationToken, CommonCommandServices services) 308protected abstract Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken); 313protected virtual bool IsMachineReadableFormatRequested(ParseResult parseResult) => IsJsonFormatRequested(parseResult); 318protected virtual bool IsJsonFormatRequested(ParseResult parseResult)
Commands\CacheCommand.cs (1)
32protected override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\CertificatesCleanCommand.cs (1)
25protected override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\CertificatesTrustCommand.cs (1)
27protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\CompletionsCommand.cs (1)
38protected override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\ConfigCommand.cs (6)
42protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 76protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 133protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 225protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 382protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 465protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\DashboardRunCommand.cs (4)
103protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 183private static void AddOptionArgs(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens, IEnvironment environment) 203private static void AddStringOptionArg(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens, 221private static void AddBoolOptionArg(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens,
Commands\DeployCommand.cs (3)
38protected override Task<string[]> GetRunArgumentsAsync(string? fullyQualifiedOutputPath, string[] unmatchedTokens, string? targetStep, ParseResult parseResult, CancellationToken cancellationToken) 80protected override string? GetTargetStepName(ParseResult parseResult) => "deploy"; 82protected override string GetProgressMessage(ParseResult parseResult)
Commands\DescribeCommand.cs (2)
144protected override bool IsMachineReadableFormatRequested(ParseResult parseResult) => 147protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\DestroyCommand.cs (2)
50protected override Task<string[]> GetRunArgumentsAsync(string? fullyQualifiedOutputPath, string[] unmatchedTokens, string? targetStep, ParseResult parseResult, CancellationToken cancellationToken) 90protected override string GetProgressMessage(ParseResult parseResult)
Commands\DoCommand.cs (4)
61protected override string[] GetCommandArgs(ParseResult parseResult) 67protected override async Task<string[]> GetRunArgumentsAsync(string? fullyQualifiedOutputPath, string[] unmatchedTokens, string? targetStep, ParseResult parseResult, CancellationToken cancellationToken) 118protected override string? GetTargetStepName(ParseResult parseResult) => parseResult.GetValue(_stepArgument); 120protected override string GetProgressMessage(ParseResult parseResult)
Commands\DocsGetCommand.cs (1)
51protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\DocsListCommand.cs (1)
41protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\DocsSearchCommand.cs (1)
53protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\DoctorCommand.cs (1)
59protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\ExportCommand.cs (1)
72protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\ExtensionInternalCommand.cs (2)
21protected override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 35protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\GroupedHelpAction.cs (1)
17public override int Invoke(ParseResult parseResult)
Commands\IdentityVersionAction.cs (1)
22public override int Invoke(ParseResult parseResult)
Commands\InitCommand.cs (2)
125protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 247private void DisplayDeprecatedOptionWarnings(ParseResult parseResult)
Commands\IntegrationSearchCommand.cs (4)
49protected abstract string? GetSearchTerm(ParseResult parseResult); 51protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 252protected override string? GetSearchTerm(ParseResult parseResult) => null; 271protected override string? GetSearchTerm(ParseResult parseResult) => parseResult.GetValue(_queryArgument);
Commands\LogsCommand.cs (1)
142protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\LsCommand.cs (1)
71protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\McpCallCommand.cs (1)
52protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\McpInitCommand.cs (1)
32protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\McpStartCommand.cs (1)
26protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\McpToolsCommand.cs (1)
40protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\NewCommand.cs (15)
152private string? ParseExplicitLanguageId(ParseResult parseResult) 158internal override void PrepareForExecution(ParseResult parseResult) 253private async Task<(bool Success, string? LanguageId)> ResolveSelectedLanguageAsync(ITemplate template, ParseResult parseResult, CancellationToken cancellationToken) 289private ITemplate[] GetTemplatesForTemplateArgument(ITemplate[] availableTemplates, ParseResult parseResult) 318private ITemplate[] GetTemplatesForPrompt(ITemplate[] availableTemplates, ParseResult parseResult) 325private async Task<(ITemplate? Template, bool IsConfigured)> GetProjectTemplateAsync(ITemplate[] availableTemplates, ParseResult parseResult, CancellationToken cancellationToken) 460private async Task<ResolveTemplateVersionResult> ResolveCliTemplateVersionAsync(ParseResult parseResult, string? source, CancellationToken cancellationToken) 606protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 753private async Task<CommandResult> CreateFromSourceAsync(TemplateSource source, ConfigSource? configSource, ParseResult parseResult, CancellationToken cancellationToken) 790ITemplate template, ConfigSource? configSource, ParseResult parseResult, CancellationToken cancellationToken) 819private async Task<CommandResult> CompleteTemplateAsync(TemplateResult templateResult, ConfigSource? configSource, ParseResult parseResult, CancellationToken cancellationToken) 902Task<string> PromptForProjectNameAsync(string defaultName, ParseResult parseResult, CancellationToken cancellationToken); 903Task<string> PromptForOutputPath(string v, ParseResult parseResult, Func<string, ValidationResult>? validator = null, Func<string, string>? outputPathResolver = null, CancellationToken cancellationToken = default); 1016public virtual async Task<string> PromptForOutputPath(string path, ParseResult parseResult, Func<string, ValidationResult>? validator = null, Func<string, string>? outputPathResolver = null, CancellationToken cancellationToken = default) 1036public virtual async Task<string> PromptForProjectNameAsync(string defaultName, ParseResult parseResult, CancellationToken cancellationToken)
Commands\OptionWithLegacy.cs (1)
62internal static T? GetValue<T>(this ParseResult parseResult, OptionWithLegacy<T> optionWithLegacy)
Commands\ParentCommand.cs (1)
18protected sealed override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\ParseResultHelper.cs (8)
50/// Helpers for inspecting a <see cref="ParseResult"/> after parsing. 60ParseResult parseResult, 129internal static string GetLoggableArguments(ParseResult parseResult) 169/// <see cref="ParseResult.Tokens"/> is AppHost input. 171private static HashSet<Token> GetCliOwnedTokens(ParseResult parseResult) 204ParseResult parseResult, 322internal static string? CheckForMiscasedOptions(Command command, ParseResult parseResult) 389private static HashSet<string>? GetTokensBeforeDoubleDash(ParseResult parseResult)
Commands\PipelineCommandBase.cs (7)
148protected abstract Task<string[]> GetRunArgumentsAsync(string? fullyQualifiedOutputPath, string[] unmatchedTokens, string? targetStep, ParseResult parseResult, CancellationToken cancellationToken); 149protected abstract string GetProgressMessage(ParseResult parseResult); 155protected virtual string? GetTargetStepName(ParseResult parseResult) => null; 162protected virtual string[] GetCommandArgs(ParseResult parseResult) => []; 164protected override bool IsJsonFormatRequested(ParseResult parseResult) 172protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 618ParseResult parseResult,
Commands\PsCommand.cs (2)
133protected override bool IsJsonFormatRequested(ParseResult parseResult) 136protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\PublishCommand.cs (3)
53protected override Task<string[]> GetRunArgumentsAsync(string? fullyQualifiedOutputPath, string[] unmatchedTokens, string? targetStep, ParseResult parseResult, CancellationToken cancellationToken) 87protected override string? GetTargetStepName(ParseResult parseResult) => "publish"; 89protected override string GetProgressMessage(ParseResult parseResult) => "Executing step publish";
Commands\RenderCommand.cs (3)
114protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 832protected override Task<string[]> GetRunArgumentsAsync(string? fullyQualifiedOutputPath, string[] unmatchedTokens, string? targetStep, ParseResult parseResult, CancellationToken cancellationToken) => Task.FromResult(Array.Empty<string>()); 834protected override string GetProgressMessage(ParseResult parseResult) => "Test progress";
Commands\ResourceCommand.cs (8)
116protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 185ParseResult parseResult, 315var parseResult = parserCommand.Parse(capturedArguments); 597public override async Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken) 641private async Task WriteAvailableCommandsAsync(ParseResult parseResult, string resourceName, CancellationToken cancellationToken) 664private async Task<IAppHostAuxiliaryBackchannel?> ResolveConnectionForAvailableCommandsAsync(ParseResult parseResult, CancellationToken cancellationToken) 727private static bool TryGetResourceOnlyHelp(ParseResult parseResult, [NotNullWhen(true)] out string? resourceName) 749private static string? GetOptionTokenValue(ParseResult parseResult, Option<FileInfo?> option)
Commands\ResourceCommandHelpParser.cs (3)
13ParseResult parseResult, 52private static string? GetArgumentValue(ParseResult parseResult, Argument<string> argument) 58private static string? GetOptionTokenValue(ParseResult parseResult, Option<FileInfo?> option)
Commands\RestoreCommand.cs (1)
60protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\RootCommand.cs (3)
158private static readonly (Option Option, Func<ParseResult, string[]?> GetArgs)[] s_childProcessOptions = 174public static IEnumerable<string> GetChildProcessArgs(ParseResult parseResult) 252this.SetAction((Func<ParseResult, CancellationToken, Task<int>>)((context, cancellationToken) =>
Commands\RunCommand.cs (3)
117internal override void PrepareForExecution(ParseResult parseResult) 175protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 1489private Task<CommandResult> ExecuteDetachedAsync(ParseResult parseResult, FileInfo? passedAppHostProjectFile, bool isExtensionHost, int timeoutSeconds, CancellationToken cancellationToken)
Commands\Sdk\SdkDumpCommand.cs (1)
75protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\Sdk\SdkExportCommand.cs (1)
63protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\Sdk\SdkGenerateCommand.cs (1)
60protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\SecretDeleteCommand.cs (1)
36protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\SecretGetCommand.cs (1)
37protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\SecretListCommand.cs (1)
46protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\SecretPathCommand.cs (1)
29protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\SecretSetCommand.cs (1)
73protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\SetupCommand.cs (1)
42protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\StartCommand.cs (1)
50protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\StopCommand.cs (1)
138protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\StopCommand.TrayProtocol.cs (3)
23protected override bool IsJsonFormatRequested(ParseResult parseResult) 26private async Task<CommandResult> ExecuteProtocolAsync(ParseResult parseResult, CancellationToken cancellationToken) 49private async Task<TrayStopMessage> StopProtocolInstanceAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TelemetryLogsCommand.cs (1)
79protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TelemetrySpansCommand.cs (1)
70protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TelemetryTracesCommand.cs (1)
73protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TemplateCommand.cs (4)
11private readonly Func<ParseResult, CancellationToken, Task<CommandResult>> _executeCallback; 15public TemplateCommand(ITemplate template, Func<ParseResult, CancellationToken, Task<CommandResult>> executeCallback, CommonCommandServices services) 29internal override void PrepareForExecution(ParseResult parseResult) 39protected override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TemplateManagementCommand.cs (4)
34public static AddSourceOptions FromParseResult(ParseResult parseResult) 89protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 168protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 211protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TerminalAttachCommand.cs (1)
77protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TerminalCommand.cs (1)
34protected override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TerminalPsCommand.cs (1)
72protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TerminalTapeCommand.cs (1)
19protected override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TerminalTapePlayCommand.cs (1)
71protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TestCommand.cs (2)
73protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 206private async Task<CommandResult> RunTestAppHostAsync(ParseResult parseResult, TestRunReporter reporter,
Commands\TrayStartCommand.cs (1)
18protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\TrayStopCommand.cs (1)
14protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\UpdateCommand.cs (4)
168internal override void PrepareForExecution(ParseResult parseResult) 227protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken) 741ParseResult parseResult, 842private async Task<CommandResult> ExecuteSelfUpdateAsync(ParseResult parseResult, string? selectedChannel, CancellationToken cancellationToken)
Commands\WaitCommand.cs (1)
61protected override async Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Completions\CompletionInvocation.cs (1)
61private static IEnumerable<CompletionItem> GetTokenCompletions(ParseResult parseResult)
Configuration\ConfigSourceService.cs (5)
58internal void ValidateOptIn(ParseResult parseResult) 182public Task<ConfigSource?> ResolveAndAcquireConfigSourceAsync(ParseResult parseResult, string consentPrompt, CancellationToken cancellationToken) => 186ParseResult parseResult, string consentPrompt, bool allowInteractiveInput, CancellationToken cancellationToken) 288DirectoryInfo projectDirectory, ParseResult parseResult, CancellationToken cancellationToken) 314public async Task SelectForUpdateAsync(DirectoryInfo projectDirectory, ParseResult parseResult, CancellationToken cancellationToken)
Interaction\PromptBinding.cs (13)
16private readonly Func<ParseResult, (bool WasProvided, T? Value)> _resolver; 17private readonly ParseResult? _parseResult; 20ParseResult? parseResult, 22Func<ParseResult, (bool WasProvided, T? Value)> resolver, 30ParseResult? parseResult, 32Func<ParseResult, (bool WasProvided, T? Value)> resolver, 105public static PromptBinding<T> Create<T>(ParseResult parseResult, Option<T> option) => 108public static PromptBinding<T> Create<T>(ParseResult parseResult, Option<T> option, T defaultValue) => 123public static PromptBinding<bool> CreateInvertedBoolConfirm(ParseResult parseResult, Option<bool?> option, bool defaultValue) => 140public static PromptBinding<bool> CreateBoolConfirm(ParseResult parseResult, Option<bool?> option, bool defaultValue) => 158public static PromptBinding<bool> CreateBoolConfirm(ParseResult parseResult, Option<bool?> option, bool interactiveDefault, bool nonInteractiveDefault) => 163private static Func<ParseResult, (bool, TResult?)> BuildResolver<TOption, TResult>( 176private static Func<ParseResult, (bool, T?)> BuildOptionResolver<T>(Option<T> option) =>
Profiling\ProfileCaptureOptions.cs (1)
53var parseResult = bootstrapCommand.Parse([.. args]);
Program.cs (3)
1222ParseResult parseResult; 1453private static string GetCommandName(ParseResult r) 1479internal static void WaitForDebuggerIfRequested(ParseResult parseResult, IServiceProvider services, Action waitAction)
Projects\AppHostProjectContext.cs (1)
92public ParseResult? ParseResult { get; init; }
Templating\CallbackTemplate.cs (2)
13Func<CallbackTemplate, TemplateInputs, ParseResult, CancellationToken, Task<TemplateResult>> applyTemplateCallback, 54public Task<TemplateResult> ApplyTemplateAsync(TemplateInputs inputs, ParseResult parseResult, CancellationToken cancellationToken)
Templating\CliTemplateFactory.cs (1)
265private async Task<string?> ResolveOutputPathAsync(TemplateInputs inputs, Func<CliExecutionContext, string, string> pathDeriver, string projectName, System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken)
Templating\CliTemplateFactory.EmptyTemplate.cs (2)
15private async Task<TemplateResult> ApplyEmptyAppHostTemplateAsync(CallbackTemplate template, TemplateInputs inputs, System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken) 132private async Task<bool> ResolveUseLocalhostTldAsync(System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken)
Templating\CliTemplateFactory.GoStarterTemplate.cs (1)
14private async Task<TemplateResult> ApplyGoStarterTemplateAsync(CallbackTemplate template, TemplateInputs inputs, System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken)
Templating\CliTemplateFactory.JavaStarterTemplate.cs (1)
14private async Task<TemplateResult> ApplyJavaStarterTemplateAsync(CallbackTemplate template, TemplateInputs inputs, System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken)
Templating\CliTemplateFactory.PythonStarterTemplate.cs (2)
15private async Task<TemplateResult> ApplyPythonStarterTemplateAsync(CallbackTemplate template, TemplateInputs inputs, System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken) 127private async Task<bool> ResolveUseRedisCacheAsync(System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken)
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
15private async Task<TemplateResult> ApplyTypeScriptStarterTemplateAsync(CallbackTemplate template, TemplateInputs inputs, System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken)
Templating\DotNetTemplateFactory.cs (17)
253private async Task<string[]> PromptForExtraAspireStarterOptionsAsync(ParseResult result, CancellationToken cancellationToken) 264private async Task<string[]> PromptForExtraAspireSingleFileOptionsAsync(ParseResult result, CancellationToken cancellationToken) 273private async Task<string[]> PromptForExtraAspireJsFrontendStarterOptionsAsync(ParseResult result, CancellationToken cancellationToken) 283private async Task<string[]> PromptForExtraAspireXUnitOptionsAsync(ParseResult result, CancellationToken cancellationToken) 292private async Task PromptForDevLocalhostTldOptionAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 308private async Task PromptForRedisCacheOptionAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 324private async Task PromptForTestFrameworkOptionsAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 368private async Task PromptForXUnitVersionOptionsAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 412private async Task<TemplateResult> ApplyTemplateWithNoExtraArgsAsync(CallbackTemplate template, TemplateInputs inputs, ParseResult parseResult, CancellationToken cancellationToken) 417private async Task<TemplateResult> ApplySingleFileTemplate(CallbackTemplate template, TemplateInputs inputs, ParseResult parseResult, Func<ParseResult, CancellationToken, Task<string[]>> extraArgsCallback, CancellationToken cancellationToken) 444private async Task<TemplateResult> ApplyTemplateAsync(CallbackTemplate template, TemplateInputs inputs, ParseResult parseResult, Func<ParseResult, CancellationToken, Task<string[]>> extraArgsCallback, CancellationToken cancellationToken) 462private async Task<TemplateResult> ApplyTemplateAsync(CallbackTemplate template, TemplateInputs inputs, string name, string outputPath, ParseResult parseResult, Func<ParseResult, CancellationToken, Task<string[]>> extraArgsCallback, CancellationToken cancellationToken) 597private async Task<string> GetProjectNameAsync(TemplateInputs inputs, string templateName, ParseResult parseResult, CancellationToken cancellationToken) 608private async Task<string?> GetOutputPathAsync(TemplateInputs inputs, Func<CliExecutionContext, string, string> pathDeriver, string projectName, ParseResult parseResult, CancellationToken cancellationToken)
Templating\ITemplate.cs (1)
78Task<TemplateResult> ApplyTemplateAsync(TemplateInputs inputs, ParseResult parseResult, CancellationToken cancellationToken);
Templating\TemplateEngineFactory.cs (1)
362private async Task<TemplateResult> ApplyAsync(IEngineEnvironmentSettings settings, TemplateCreator creator, ITemplateInfo template, TemplateInputs inputs, ParseResult parseResult, CancellationToken cancellationToken)
Aspire.Cli.Tests (1185)
CliBootstrapTests.cs (2)
468var parseResult = command.Parse(commandLine); 489var parseResult = command.Parse("ls");
Commands\AddCommandTests.cs (67)
1271var result = command.Parse("add --help"); 1285var result = command.Parse("integration add --help"); 1314var result = command.Parse("integration search redis --json"); 1345var result = command.Parse("integration search --format json"); 1423var result = command.Parse("integration list --format json"); 1471var result = command.Parse(commandLine); 1496var result = command.Parse("integration list"); 1546var result = command.Parse("integration search redis --format json"); 1592var result = command.Parse("integration search rdis --format json"); 1679var result = command.Parse($"integration search redis --apphost \"{appHostFile.FullName}\" --format json"); 1751var result = command.Parse($"integration search redis --apphost \"{appHostFile.FullName}\" --format json"); 1838var result = command.Parse($"integration search foundry --apphost \"{appHostFile.FullName}\" --format json"); 1933var result = command.Parse($"integration search redis --apphost \"{appHostFile.FullName}\" --format json"); 2015var result = command.Parse($"{commandText} --apphost \"{appHostFile.FullName}\" --format json"); 2064var result = command.Parse($"integration search redis --apphost \"{appHostFile.FullName}\" --format json"); 2147var result = command.Parse($"integration search foundry --apphost \"{appHostFile.FullName}\" --format json"); 2205var result = command.Parse("integration list --format json"); 2258var result = command.Parse("integration search azure --format json"); 2342var result = command.Parse("add"); 2420var result = command.Parse("add docker"); 2503var result = command.Parse("add docker --version 9.2.0"); 2583var result = command.Parse("add docker --version 9.2.0"); 2658var result = command.Parse("add redis --version 13.2.0"); 2727var result = command.Parse("add redis --version 13.2.0"); 2818var result = command.Parse("add redis --version 13.2.0"); 2889var result = command.Parse($"add {integrationName}"); 2963var result = command.Parse("add redis --version 13.2.0"); 3038var result = command.Parse("add --version 13.2.0"); 3109var result = command.Parse("add --version 13.2.0"); 3179var result = command.Parse("add redis --version 13.2.0"); 3256var result = command.Parse("add redis --version 13.2.0"); 3340var result = command.Parse("add red"); 3428var result = command.Parse($"add redis --source {expectedSource}"); 3454var result = command.Parse($"add redis --source {source}"); 3489var result = command.Parse("add"); 3564var result = command.Parse("add nonexistentpackage"); 4006var result = command.Parse($"add {packageId} --apphost \"{appHostFile.FullName}\""); 4147var result = command.Parse($"add Aspire.Hosting.Azure.Storage --apphost \"{appHostFile.FullName}\""); 4205var result = command.Parse("add redis"); 4273var result = command.Parse("add redis"); 4520var result = command.Parse("add redis"); 4589var result = command.Parse("add redis"); 4639var result = command.Parse($"add Aspire.Hosting.Foo --apphost \"{appHostFile.FullName}\""); 4699var result = command.Parse($"add {integrationName} --apphost \"{appHostFile.FullName}\"{sourceArgument}"); 4749var result = command.Parse($"add redis --apphost \"{appHostFile.FullName}\" --source ./feed"); 4810var result = command.Parse($"add Aspire.Hosting.Redis --apphost \"{appHostFile.FullName}\""); 4862var result = command.Parse($"add Aspire.Hosting.Foo --all --apphost \"{appHostFile.FullName}\""); 4908var result = command.Parse($"integration list --apphost \"{appHostFile.FullName}\" --format json"); 4956var result = command.Parse($"integration list --apphost \"{appHostFile.FullName}\""); 5003var result = command.Parse($"integration list --apphost \"{appHostFile.FullName}\""); 5052var result = command.Parse($"integration search zzznomatch --apphost \"{appHostFile.FullName}\""); 5110var result = command.Parse($"add Aspire.Hosting.Foo --apphost \"{appHostFile.FullName}\""); 5164var result = command.Parse($"add Aspire.Hosting.Redis --apphost \"{appHostFile.FullName}\""); 5210var result = command.Parse($"integration list --apphost \"{appHostFile.FullName}\" --format json"); 5376var result = command.Parse("add postgre"); 5443var result = command.Parse("add kube"); 5496var result = command.Parse("add kubernetes"); 5553var result = command.Parse("add kube"); 5622var result = command.Parse(integrationName is null ? "add" : $"add {integrationName}"); 5677var result = command.Parse("add postgre --version 9.2.0"); 5729var result = command.Parse("add nonexistentpackage --version 9.2.0"); 5815var result = command.Parse("add sql"); 5896var result = command.Parse("add sql --version 13.2.0"); 5979var result = command.Parse("add sql --version 13.2.0"); 6067var result = command.Parse("add nonexistentpackage --version 13.2.0"); 6154var result = command.Parse("add nonexistentpackage --version 13.2.0"); 6231var result = command.Parse("add azureapp");
Commands\AgentInitClientSelectionTests.cs (47)
38var result = provider.GetRequiredService<RootCommand>().Parse("agent init --skills aspire --mcp=false"); 91var result = provider.GetRequiredService<RootCommand>().Parse( 145var result = provider.GetRequiredService<RootCommand>().Parse( 171var result = provider.GetRequiredService<RootCommand>().Parse( 199var result = command.Parse($"agent init {options}"); 213var result = provider.GetRequiredService<RootCommand>().Parse($"agent init --scope {value}"); 229var result = provider.GetRequiredService<RootCommand>().Parse($"{command} --agent copilot"); 250var result = root.Parse($"{command} --agents {selection}"); 255var rejected = root.Parse($"{command} --agents copilot"); 273var result = provider.GetRequiredService<RootCommand>().Parse( 309var result = provider.GetRequiredService<RootCommand>().Parse("agent init --skills all --mcp"); 346var result = provider.GetRequiredService<RootCommand>().Parse( 385var result = provider.GetRequiredService<RootCommand>().Parse( 433var result = provider.GetRequiredService<RootCommand>().Parse( 517var result = provider.GetRequiredService<RootCommand>().Parse("agent init"); 566var result = provider.GetRequiredService<RootCommand>().Parse("agent init"); 604var result = provider.GetRequiredService<RootCommand>().Parse("agent init"); 616var result = provider.GetRequiredService<RootCommand>().Parse( 645var result = provider.GetRequiredService<RootCommand>().Parse($"agent init --agents all --scope {scope} --skills none --mcp"); 671var result = provider.GetRequiredService<RootCommand>().Parse("agent init --agents copilot,claude --skills none --mcp"); 690var result = provider.GetRequiredService<RootCommand>().Parse($"agent init --agents {client} --scope {scope} --skills none --mcp"); 719var result = provider.GetRequiredService<RootCommand>().Parse( 741var result = command.Parse($"agent init --agents {client} --skills none --mcp"); 770var result = provider.GetRequiredService<RootCommand>().Parse( 815var result = provider.GetRequiredService<RootCommand>().Parse( 878var result = provider.GetRequiredService<RootCommand>().Parse( 914var result = provider.GetRequiredService<RootCommand>().Parse( 940var result = provider.GetRequiredService<RootCommand>().Parse( 994var result = provider.GetRequiredService<RootCommand>().Parse( 1033var result = provider.GetRequiredService<RootCommand>().Parse( 1060var result = provider.GetRequiredService<RootCommand>().Parse("agent init --agents opencode --scope global --skills none --mcp"); 1098var result = provider.GetRequiredService<RootCommand>().Parse("agent init --agents all --scope global --skills none --mcp"); 1132var result = provider.GetRequiredService<RootCommand>().Parse( 1161var result = provider.GetRequiredService<RootCommand>().Parse( 1193var result = provider.GetRequiredService<RootCommand>().Parse( 1246var result = provider.GetRequiredService<RootCommand>().Parse( 1278var result = provider.GetRequiredService<RootCommand>().Parse( 1318var result = provider.GetRequiredService<RootCommand>().Parse( 1353var result = provider.GetRequiredService<RootCommand>().Parse( 1373var result = provider.GetRequiredService<RootCommand>().Parse($"agent init --agents claude --scope {scope} --skills aspire"); 1408var result = provider.GetRequiredService<RootCommand>().Parse( 1438var result = provider.GetRequiredService<RootCommand>().Parse( 1512var result = provider.GetRequiredService<RootCommand>().Parse( 1544var result = provider.GetRequiredService<RootCommand>().Parse( 1575var result = provider.GetRequiredService<RootCommand>().Parse( 1588var result = provider.GetRequiredService<RootCommand>().Parse( 1631var result = provider.GetRequiredService<RootCommand>().Parse(
Commands\AgentInitCommandTests.cs (40)
102var result = provider.GetRequiredService<RootCommand>().Parse( 133var result = provider.GetRequiredService<RootCommand>().Parse( 154var result = provider.GetRequiredService<RootCommand>().Parse( 214var result = provider.GetRequiredService<RootCommand>().Parse( 235var result = root.Parse($"agent init --mcp{suffix}"); 300var result = provider.GetRequiredService<RootCommand>().Parse( 356var result = provider.GetRequiredService<RootCommand>().Parse( 385var result = provider.GetRequiredService<RootCommand>().Parse("agent init --agents copilot --mcp=false"); 425var command = provider.GetRequiredService<RootCommand>().Parse( 444var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents none --skills all"); 464var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --skills none"); 486var result = command.Parse($"agent init --agents all --scope {scope}"); 512var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents invalid --skills all"); 529var result = command.Parse("agent init --agents copilot"); 620var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents all --skills none"); 639var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents all"); 658var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents all --mcp"); 675var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents all --mcp=false"); 695var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents none --skills all"); 759var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents copilot --scope global --skills aspire"); 796var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents copilot --scope global --skills aspire"); 832var result = command.Parse($"agent init --workspace-root {workspace.WorkspaceRoot.FullName} --agents copilot --scope global --skills aspire"); 871var result = provider.GetRequiredService<RootCommand>().Parse( 923var result = provider.GetRequiredService<RootCommand>().Parse( 953var result = provider.GetRequiredService<RootCommand>().Parse( 984var result = provider.GetRequiredService<RootCommand>().Parse( 1012var result = provider.GetRequiredService<RootCommand>().Parse( 1043var result = provider.GetRequiredService<RootCommand>().Parse( 1059var repeated = provider.GetRequiredService<RootCommand>().Parse( 1089var result = provider.GetRequiredService<RootCommand>().Parse( 1151var result = provider.GetRequiredService<RootCommand>().Parse($"agent init --agents {agents} --scope project --skills {skills} --mcp=false --remove-skill-copies"); 1203var result = provider.GetRequiredService<RootCommand>().Parse( 1235var result = provider.GetRequiredService<RootCommand>().Parse( 1290var result = provider.GetRequiredService<RootCommand>().Parse( 1309var result = provider.GetRequiredService<RootCommand>().Parse( 1341var result = provider.GetRequiredService<RootCommand>().Parse( 1378var result = provider.GetRequiredService<RootCommand>().Parse( 1416var result = provider.GetRequiredService<RootCommand>().Parse( 1474var result = provider.GetRequiredService<RootCommand>().Parse( 1504var result = provider.GetRequiredService<RootCommand>().Parse(
Commands\AgentMcpCommandTests.cs (8)
95var parseResult = rootCommand.Parse(commandLine); 1596var parseResult = rootCommand.Parse("agent mcp --dashboard-url not-a-url"); 1616var parseResult = rootCommand.Parse( 1673var parseResult = rootCommand.Parse(commandLine); 1707var parseResult = rootCommand.Parse($"agent mcp --apphost \"{appHostProjectFile.FullName}\""); 1740var parseResult = rootCommand.Parse($"agent mcp --apphost \"{appHostDirectory.FullName}\""); 1768var parseResult = rootCommand.Parse($"agent mcp --apphost \"{missingPath}\""); 1803var parseResult = rootCommand.Parse($"agent mcp --apphost \"{appHostDirectory.FullName}\"");
Commands\AgentTelemetryCommandTests.cs (12)
35var result = provider.GetRequiredService<RootCommand>().Parse(["agent", "telemetry", "--hook"]); 71var result = provider.GetRequiredService<RootCommand>().Parse(["agent", "telemetry", "--hook"]); 111var result = provider.GetRequiredService<RootCommand>().Parse(args); 168var result = command.Parse("agent telemetry --event-type skill_invocation --client-name copilot-cli --session-id 11111111-1111-1111-1111-111111111111 --skill-name aspire --timestamp 2026-01-01T00:00:00Z"); 200var result = command.Parse("agent telemetry --event-type tool_invocation --tool-name aspire-list_resources"); 231var result = command.Parse($"agent telemetry --event-type reference_file_read --file-reference {longValue}"); 263var result = command.Parse(["agent", "telemetry", "--event-type", "reference_file_read", "--file-reference", fileReference]); 289var result = command.Parse("agent telemetry --event-type not_a_real_event --skill-name aspire"); 318var result = command.Parse(["agent", "telemetry", "--event-type", "not_a_real_event", "--skill-name", "bad name", "--file-reference", "/etc/passwd"]); 336var result = command.Parse("agent telemetry --event-type skill_invocation --some-future-flag value"); 351var result = command.Parse("agent telemetry"); 383var result = command.Parse("agent telemetry --event-type reference_file_read --file-reference aspire/references/deploy.md");
Commands\ApiCommandTests.cs (5)
24var result = command.Parse("docs api"); 41var result = command.Parse("docs api list csharp"); 58var result = command.Parse("docs api search emulator --language typescript --format json"); 75var result = command.Parse("docs api get csharp/aspire.test.package/testtype"); 92var result = command.Parse("docs api get missing/id");
Commands\BaseCommandTests.cs (27)
46var result = command.Parse(args); 72var result = command.Parse("integration list --format json"); 93var result = command.Parse("stop"); 119var result = command.Parse("stop"); 143var result = command.Parse("stop"); 164var result = command.Parse("test"); 221var result = command.Parse(args); 247var result = command.Parse("run"); 284var result = command.Parse("run"); 336var result = provider.GetRequiredService<RootCommand>().Parse("ps"); 369var result = provider.GetRequiredService<RootCommand>().Parse("ps"); 399var result = command.Parse("add SomePackage"); 434var result = command.Parse("run"); 492var result = command.Parse(commandArgs); 542var result = command.Parse("ps"); 571var result = command.Parse("ps"); 624var result = command.Parse("run"); 663var result = command.Parse("run"); 699var result = command.Parse(args); 727var result = command.Parse("run --apphost somepath"); 755var result = command.Parse($"run {optionName}={value}"); 801var result = command.Parse("run --custom-arg value"); 827var result = command.Parse("run -- --AppHost somepath"); 848var result = command.Parse("run --AppHost foo -- --AppHost bar"); 867var result = command.Parse("add --AppHost somepath"); 888var result = command.Parse("resource myresource mycommand --AppHost primary"); 904protected override async Task<CommandResult> ExecuteAsync(System.CommandLine.ParseResult parseResult, CancellationToken cancellationToken)
Commands\CacheCommandTests.cs (7)
22var result = command.Parse("cache"); 37var result = command.Parse("cache --help"); 58var result = command.Parse("cache clear"); 79var result = command.Parse("cache clear"); 109var result = command.Parse("cache clear"); 136var result = command.Parse("cache clear"); 156var result = command.Parse("cache clear");
Commands\CertificatesCommandTests.cs (4)
27var result = command.Parse("certs --help"); 42var result = command.Parse("certs clean --help"); 57var result = command.Parse("certs trust --help"); 111var result = command.Parse("certs trust --non-interactive");
Commands\CompletionsCommandTests.cs (4)
147run.SetAction(int (ParseResult _) => throw new InvalidOperationException("Completion must not run a command.")); 169command.SetAction(int (ParseResult _) => throw new InvalidOperationException("Completion must not run a command.")); 171run.SetAction(int (ParseResult _) => throw new InvalidOperationException("Completion must not run a command.")); 227command.SetAction(int (ParseResult _) => throw new InvalidOperationException("Completion must not run a command."));
Commands\ConfigCommandTests.cs (51)
107var result = command.Parse("config"); 121var result = command.Parse("config"); 135var result = command.Parse("config set foo bar"); 174var setLlmsResult = command.Parse("config set docs.llmsTxtUrl http://localhost:4321/llms-small.txt"); 178var setSitemapResult = command.Parse("config set docs.api.sitemapUrl http://localhost:4321/sitemap-0.xml"); 210var result = command.Parse("config set certificates.nssDbPaths firefox=/profiles/firefox --global"); 253var result = command.Parse($"config set {AspireConfigContainerTunnel.BaseImageConfigKey} {image}"); 289var result = command.Parse("config set foo.bar baz"); 314var result = command.Parse("config set foo.bar.baz hello"); 344var result1 = command.Parse("config set foo primitive"); 349var result2 = command.Parse("config set foo.bar nested"); 374var setResult = command1.Parse("config set testkey testvalue"); 385var getResult = command2.Parse("config get testkey"); 400var setResult = command1.Parse("config set level1.level2.level3 nestedvalue"); 410var getResult = command2.Parse("config get level1.level2.level3"); 423var result = command.Parse("config get nonexistent.key"); 498var setResult = command.Parse("config set deletekey deletevalue"); 503var deleteResult = command.Parse("config delete deletekey"); 508var getResult = command.Parse("config get deletekey"); 523var setResult = command.Parse("config set deep.nested.value test"); 528var deleteResult = command.Parse("config delete deep.nested.value"); 552var setResult1 = command.Parse("config set flatkey flatvalue"); 556var setResult2 = command.Parse("config set nested.key nestedvalue"); 560var setResult3 = command.Parse("config set deep.nested.key deepvalue"); 565var listResult = command.Parse("config list"); 584var setResult = command.Parse("config set testkey testvalue"); 588var listResult = command.Parse("config list"); 610var setResult = command.Parse("config set testkey testvalue"); 614var listResult = command.Parse("config list --all"); 636var listResult = command.Parse("config list"); 658var listResult = command.Parse("config list --all"); 679var setResult = command.Parse($"config set {KnownFeatures.FeaturePrefix}.testFeature true"); 697var setResult = command.Parse($"config set {KnownFeatures.FeaturePrefix}.testFeature false"); 721var setResult = command.Parse($"config set {KnownFeatures.FeaturePrefix}.testFeature invalid"); 754var setResult = command.Parse($"config set {KnownFeatures.FeaturePrefix}.{KnownFeatures.ShowDeprecatedPackages} true"); 787var result = command.Parse("config set features:polyglotSupportEnabled true"); 820var setResult = command.Parse($"config set {key} true"); 843var getResult = reloadedProvider.GetRequiredService<Aspire.Cli.Commands.RootCommand>() 847var deleteResult = reloadedProvider.GetRequiredService<Aspire.Cli.Commands.RootCommand>() 863var result1 = command.Parse("config set features:polyglotSupportEnabled true"); 868var result2 = command.Parse("config set features.polyglotSupportEnabled false"); 894var result1 = command.Parse("config set features.polyglotSupportEnabled true"); 899var result2 = command.Parse("config set features:polyglotSupportEnabled false"); 925var setResult = command.Parse("config set features.polyglotSupportEnabled true"); 930var deleteResult = command.Parse("config delete features:polyglotSupportEnabled"); 1018var result = command.Parse($"config set {key} AppHost.csproj"); 1048var result = command.Parse($"config set {key} AppHost.csproj"); 1080var result = command.Parse($"config set {key} AppHost.csproj --global"); 1105var result = command.Parse($"config set -g overrideStagingFeed {stagingFeed}"); 1145var result = command.Parse("config set appHostPath AppHost.csproj"); 1163var result = command.Parse("config set appHost.language typescript/nodejs");
Commands\ConfigSourceCommandTests.cs (27)
364var result = root.Parse($"agent init --agents {agent} --scope project --skills aspire --non-interactive"); 429var result = provider.GetRequiredService<RootCommand>().Parse( 442var agentResult = agentProvider.GetRequiredService<RootCommand>().Parse( 526var result = command.Parse("update --config-source --yes --non-interactive"); 562var result = provider.GetRequiredService<RootCommand>().Parse("update --config-source --yes --non-interactive"); 626var result = provider.GetRequiredService<RootCommand>().Parse("config get skillSources.team.repository"); 643var refresh = provider.GetRequiredService<RootCommand>().Parse("update --config-source --yes --non-interactive"); 657var result = provider.GetRequiredService<RootCommand>().Parse("update --config-source --non-interactive"); 674var result = provider.GetRequiredService<RootCommand>().Parse($"update --config-source {option}"); 714var result = provider.GetRequiredService<RootCommand>().Parse($"update --config-source{argument} --yes --non-interactive"); 758var result = provider.GetRequiredService<RootCommand>().Parse( 786var result = command.Parse($"update --config-source --apphost \"{Path.Combine(project.FullName, "apphost.cs")}\" --yes --non-interactive"); 810var result = provider.GetRequiredService<RootCommand>().Parse("update --config-source --yes --non-interactive"); 847var result = provider.GetRequiredService<RootCommand>().Parse( 923var result = provider.GetRequiredService<RootCommand>().Parse($"update --apphost \"{projectFile.FullName}\" --yes{consent}"); 989var result = provider.GetRequiredService<RootCommand>().Parse($"update --apphost \"{projectFile.FullName}\" --yes{consent}"); 1021var result = provider.GetRequiredService<RootCommand>().Parse("update --yes --non-interactive"); 1066var result = provider.GetRequiredService<RootCommand>().Parse("update --config-source --yes --non-interactive"); 1195var result = provider.GetRequiredService<RootCommand>().Parse( 1228var result = provider.GetRequiredService<RootCommand>().Parse($"{commandLine} --apphost \"{missingProject}\""); 1247var result = provider.GetRequiredService<RootCommand>().Parse(commandLine); 1266var result = provider.GetRequiredService<RootCommand>().Parse(commandLine); 1294var result = provider.GetRequiredService<RootCommand>().Parse( 1317var result = provider.GetRequiredService<RootCommand>().Parse( 1494var refresh = refreshProvider.GetRequiredService<RootCommand>().Parse( 1523var result = provider.GetRequiredService<RootCommand>().Parse( 1576var result = provider.GetRequiredService<RootCommand>().Parse(
Commands\DashboardRunCommandTests.cs (18)
39var result = command.Parse("dashboard run"); 56var result = command.Parse("dashboard run --help"); 79var result = command.Parse($"dashboard run {args}"); 92var result = command.Parse("dashboard run --ASPNETCORE_URLS=http://localhost:9999"); 144var result = command.Parse("dashboard run"); 164var result = command.Parse("dashboard run"); 203var result = command.Parse("dashboard run"); 222var result = command.Parse("dashboard run"); 255var result = command.Parse("dashboard run"); 279var result = command.Parse("dashboard run"); 311var result = command.Parse($"dashboard run {cliArgs}"); 331var result = command.Parse("dashboard run"); 355var result = command.Parse("dashboard run"); 376var result = command.Parse("dashboard run --CUSTOM_SETTING=myvalue"); 401var result = command.Parse("dashboard run --frontend-url http://localhost:5000 --otlp-grpc-url http://localhost:9317 --otlp-http-url http://localhost:9318 --allow-anonymous --application-name TestApp --persistence Run --config-file-path /my/config.json"); 429var result = command.Parse("dashboard run"); 460var result = command.Parse("dashboard run"); 517var result = command.Parse("dashboard run");
Commands\DeployCommandTests.cs (12)
30var result = command.Parse("deploy --help"); 60var result = command.Parse("deploy"); 126var result = command.Parse(invocation); 178var result = command.Parse("deploy --apphost invalid.csproj"); 212var result = command.Parse("deploy --apphost valid.csproj"); 246var result = command.Parse("deploy --apphost valid.csproj"); 314var result = command.Parse("deploy"); 386var result = command.Parse("deploy"); 444var result = command.Parse($"deploy --apphost \"{appHostFile.FullName}\" --environment \"{environment}\""); 492var result = command.Parse($"deploy --apphost \"{appHostFile.FullName}\" --environment Production"); 563var result = command.Parse($"deploy --output-path {testOutputPath}"); 623var result = command.Parse("deploy");
Commands\DescribeCommandTests.cs (32)
175var result = command.Parse("describe --help"); 189var result = command.Parse("describe"); 208var result = command.Parse(commandLine); 226var result = command.Parse($"describe --format {format} --help"); 244var result = command.Parse($"describe --format {format} --help"); 259var result = command.Parse("describe --format invalid"); 274var result = command.Parse("describe --follow --help"); 289var result = command.Parse("describe --watch --help"); 304var result = command.Parse("resources --help"); 319var result = command.Parse("describe --follow --format json --help"); 334var result = command.Parse("describe myresource --help"); 349var result = command.Parse("describe myresource --follow --format json --help"); 550var result = command.Parse("describe --follow --format json"); 633var result = command.Parse("describe --follow --format json"); 672var result = command.Parse("describe --follow --format json"); 710var result = command.Parse("describe --follow --format json"); 758var result = command.Parse("describe --follow --format json --include-disabled-commands"); 803var result = command.Parse("describe --follow --format json"); 851var result = command.Parse("describe --follow"); 884var result = command.Parse("describe --follow --format json"); 914var result = command.Parse("describe --follow --format json"); 938var result = command.Parse("describe --follow --format json"); 965var result = command.Parse("describe --format json"); 1004var result = command.Parse("describe --format json"); 1035var result = command.Parse("describe --follow --format json"); 1065var result = command.Parse("describe --format json"); 1091var result = command.Parse("describe --format json --include-hidden"); 1118var result = command.Parse("describe aspire-dashboard --format json"); 1143var result = command.Parse("describe --follow --format json"); 1171var result = command.Parse("describe --follow --format json --include-hidden"); 1217var result = provider.GetRequiredService<RootCommand>().Parse(args); 1376var result = command.Parse("describe");
Commands\DestroyCommandTests.cs (9)
28var result = command.Parse("destroy --help"); 65var result = command.Parse(commandLine); 84var result = command.Parse(commandLine); 116var result = command.Parse("destroy --apphost invalid.csproj"); 175var result = command.Parse("destroy"); 211var result = command.Parse(commandLine); 274var result = command.Parse(commandLine); 332var result = command.Parse($"destroy --output-path {testOutputPath}"); 385var result = command.Parse("destroy --yes");
Commands\DoCommandTests.cs (14)
29var result = command.Parse("do --help"); 56var result = command.Parse("do"); 114var result = command.Parse("do my-custom-step"); 167var result = command.Parse("do deploy"); 220var result = command.Parse("do publish"); 278var result = command.Parse("do my-step --output-path test-output"); 310var result = command.Parse("do my-step --apphost invalid.csproj"); 399var result = command.Parse(commandLine); 563var result = command.Parse("do deploy --list-steps"); 617var result = command.Parse("do deploy --list-steps"); 829var result = command.Parse("do deploy --list-steps"); 844var result = command.Parse("do --help"); 956var result = command.Parse("do my-step --pipeline-log-level debug"); 1011var result = command.Parse("do my-step --log-level Warning");
Commands\DocsCommandTests.cs (10)
24var result = command.Parse("docs"); 42var result = command.Parse("docs list"); 59var result = command.Parse("docs list --format json"); 77var result = command.Parse("docs search redis"); 95var result = command.Parse("docs search redis -n 3"); 113var result = command.Parse("docs search redis --format json"); 130var result = command.Parse("docs get redis-integration"); 147var result = command.Parse("docs get redis-integration --section \"Getting Started\""); 203var result = command.Parse("docs get docs-smoke-test"); 246var result = command.Parse("docs get nonexistent-page");
Commands\DoctorCommandTests.cs (7)
30var result = command.Parse("doctor --help"); 224var result = command.Parse("doctor --format json"); 805var result = command.Parse("doctor --self"); 870var result = command.Parse("doctor"); 924var result = command.Parse("doctor"); 1051var result = command.Parse("doctor"); 1099var result = command.Parse(commandLine);
Commands\ExportCommandTests.cs (14)
61var result = command.Parse($"export --output {outputPath}"); 132var result = command.Parse($"export --output {outputPath}"); 165var result = command.Parse($"export --apphost {appHostProjectPath} --output {outputPath}"); 280var result = command.Parse($"export --output {outputPath}"); 342var result = command.Parse($"export --output {outputPath}"); 460var result = command.Parse($"export redis --output {outputPath}"); 518var result = command.Parse($"export webfrontend --output {outputPath}"); 578var result = command.Parse($"export apiservice --output {outputPath}"); 628var result = command.Parse($"export --output {outputPath}"); 670var result = command.Parse($"export --include-hidden --output {outputPath}"); 714var result = command.Parse($"export aspire-dashboard --output {outputPath}"); 750var result = command.Parse($"export nonexistent --output {outputPath}"); 789var result = command.Parse($"export --dashboard-url http://localhost:18888 --api-key test-token --output {outputPath}"); 836var result = command.Parse($"export --output {outputPath}");
Commands\ExtensionInternalCommandTests.cs (8)
37var result = command.Parse("extension --help"); 51var result = command.Parse("extension"); 72var result = command.Parse("extension get-apphosts"); 120var result = command.Parse("extension get-apphosts --nologo"); 149var result = command.Parse("extension get-apphosts"); 188var result = command.Parse("extension get-apphosts"); 206var result = command.Parse("extension get-apphosts"); 220var result = command.Parse("extension get-apphosts --help");
Commands\InitCommandTests.cs (56)
154var parseResult = initCommand.Parse("init"); 182var result = provider.GetRequiredService<RootCommand>().Parse( 233var parseResult = initCommand.Parse($"init{additionalArgs}"); 261var parseResult = initCommand.Parse("init --file-based"); 309var parseResult = command.Parse("init --file-based --language csharp --non-interactive --suppress-agent-init"); 334var parseResult = command.Parse("init --help"); 350var parseResult = initCommand.Parse("init"); 372var parseResult = initCommand.Parse("init"); 394var parseResult = initCommand.Parse("init"); 475var parseResult = initCommand.Parse("init"); 526var parseResult = initCommand.Parse("init"); 564var parseResult = initCommand.Parse("init --source https://example.test/v3/index.json --version 13.0.0 --channel daily --suppress-agent-init"); 622var parseResult = command.Parse($"init --file-based{languageArgs}"); 666var parseResult = initCommand.Parse($"init{additionalArgs}"); 700var parseResult = initCommand.Parse("init --language go --suppress-agent-init"); 740var parseResult = initCommand.Parse("init --suppress-agent-init"); 769var parseResult = initCommand.Parse($"init --language typescript{additionalArgs}"); 819var parseResult = initCommand.Parse($"init --language typescript{additionalArgs}"); 905var parseResult = initCommand.Parse("init --language typescript"); 938var parseResult = initCommand.Parse("init --language typescript --skills aspire"); 974var parseResult = initCommand.Parse("init --language typescript --skills none"); 1037var result = provider.GetRequiredService<InitCommand>().Parse( 1058var parseResult = command.Parse("init --non-interactive --skills none"); 1080var parseResult = command.Parse("init --non-interactive --agents none"); 1102var parseResult = command.Parse($"init --non-interactive --agents copilot --scope {scope} --skills aspire"); 1138var parseResult = command.Parse($"init --non-interactive --agents copilot --scope project --skills aspire{option}"); 1160var parseResult = initCommand.Parse("init"); 1208var parseResult = initCommand.Parse("init"); 1232var parseResult = initCommand.Parse("init"); 1278var parseResult = initCommand.Parse($"init{additionalArgs}"); 1320var parseResult = initCommand.Parse("init"); 1408var parseResult = initCommand.Parse("init"); 1461var parseResult = initCommand.Parse("init"); 1516var parseResult = initCommand.Parse("init"); 1565var parseResult = initCommand.Parse("init"); 1601var parseResult = initCommand.Parse("init"); 1636var parseResult = initCommand.Parse("init"); 1672var parseResult = initCommand.Parse("init"); 1714var parseResult = initCommand.Parse("init"); 1745var parseResult = initCommand.Parse("init"); 1789var parseResult = initCommand.Parse("init"); 1841var parseResult = initCommand.Parse("init"); 1889var parseResult = initCommand.Parse("init"); 1943var parseResult = initCommand.Parse("init"); 1995var parseResult = initCommand.Parse("init"); 2066var parseResult = initCommand.Parse("init"); 2151var parseResult = initCommand.Parse("init"); 2219var parseResult = initCommand.Parse("init"); 2269var parseResult = initCommand.Parse("init"); 2315var parseResult = initCommand.Parse("init"); 2352var parseResult = initCommand.Parse("init"); 2401var parseResult = initCommand.Parse("init"); 2463var parseResult = initCommand.Parse("init"); 2514var parseResult = initCommand.Parse("init"); 2576var parseResult = initCommand.Parse("init"); 2623var parseResult = initCommand.Parse("init");
Commands\LogsCommandTests.cs (39)
27var result = command.Parse("logs --help"); 129var result = command.Parse($"logs --tail {tailValue}"); 150var result = command.Parse($"logs --tail {tailValue} --help"); 167var result = command.Parse("logs myresource"); 187var result = command.Parse($"logs --format {format} --help"); 205var result = command.Parse($"logs --format {format} --help"); 220var result = command.Parse("logs --format invalid"); 236var result = command.Parse("logs --follow --tail 50 --help"); 251var result = command.Parse("logs myresource --follow --tail 100 --format json --help"); 267var result = command.Parse("logs -f -n 10 --help"); 381var result = command.Parse("logs --format json"); 411var result = command.Parse("logs"); 438var result = command.Parse($"logs {resourceName} --format json"); 460var result = command.Parse("logs --format json --timestamps"); 498var result = command.Parse("logs --format json"); 537var result = command.Parse("logs --timestamps"); 559var result = command.Parse("logs"); 595var result = command.Parse("logs"); 627var result = command.Parse("logs --format json"); 649var result = command.Parse("logs --format json"); 674var result = command.Parse("logs --format json --include-hidden"); 699var result = command.Parse("logs aspire-dashboard --format json"); 784var result = command.Parse("logs --format json"); 893var result = command.Parse("logs --follow"); 915var result = command.Parse("logs --follow --format json"); 938var result = command.Parse("logs --follow --format json"); 960var result = command.Parse("logs --follow --format json"); 1050var result = command.Parse("logs redis --search timeout --format json"); 1081var result = command.Parse("logs redis --search Ready --format json"); 1110var result = command.Parse("logs redis --search nonexistent --format json"); 1141var result = command.Parse("logs redis --search \"Connection timeout\" --format json"); 1173var result = command.Parse("logs redis --search level:error --format json"); 1208var result = command.Parse("logs redis --search Ready --tail 2 --format json"); 1256var result = command.Parse("logs redis --search Ready --tail 2 --format json"); 1292var result = command.Parse("logs redis --search timeout --tail 1 --format json"); 1337var result = command.Parse("logs --search timeout --tail 1 --format json"); 1386var result = command.Parse("logs --follow --search timeout"); 1415var result = command.Parse("logs redis --follow --tail 10 --search timeout"); 1460var result = command.Parse("logs redis --follow --tail 10 --search timeout");
Commands\LsCommandTests.cs (22)
33var result = command.Parse("ls --help"); 48var result = command.Parse("ls"); 66var result = command.Parse($"ls --format {format}"); 81var result = command.Parse("ls --format invalid"); 112var result = command.Parse("ls --format json"); 152var result = command.Parse("ls --format json"); 193var result = command.Parse("ls --format json"); 234var result = command.Parse("ls --format json"); 266var result = command.Parse("ls --format json"); 307var result = command.Parse("ls --format json --stream"); 349var result = command.Parse("ls --format json --stream"); 394var result = command.Parse("ls --format json --stream"); 441var result = command.Parse("ls --format json --stream"); 485var result = command.Parse("ls --format json --stream"); 507var result = command.Parse("ls --stream"); 539var result = command.Parse("ls"); 578var result = command.Parse("ls"); 646var result = command.Parse("ls"); 689var result = command.Parse("ls"); 719var result = command.Parse("ls"); 748var result = command.Parse("ls --all"); 786var result = command.Parse("ls --format json --all");
Commands\McpCommandTests.cs (7)
21var result = command.Parse("mcp"); 36var result = command.Parse("mcp --help"); 50var result = command.Parse("mcp start --help"); 108var result = command.Parse("agent"); 123var result = command.Parse("agent --help"); 137var result = command.Parse("agent mcp --help"); 151var result = command.Parse("agent init --help");
Commands\NewCommandChannelResolutionTests.cs (2)
112var parseResult = newCommand.Parse("new aspire-starter --name TestApp --output ./output --use-redis-cache --test-framework None"); 606var parseResult = newCommand.Parse($"new fake-template --name TestApp --output ./captured{channelArg}{versionArg}{sourceArg}");
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (1)
274var command = provider.GetRequiredService<RootCommand>().Parse("new --name Demo --output out --suppress-agent-init");
Commands\NewCommandLocalTemplateTests.cs (2)
1664var parseResult = command.Parse("new --template-repository=-repository --template-path template --name Demo --output out --suppress-agent-init"); 1960var result = provider.GetRequiredService<RootCommand>().Parse($"new aspire-starter {option} template-value");
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (1)
431var parseResult = provider.GetRequiredService<RootCommand>().Parse("new --template-path template");
Commands\NewCommandLocalTemplateTests.SourceList.cs (6)
177var parseResult = provider.GetRequiredService<RootCommand>().Parse("template source list --format yaml"); 448var omitted = root.Parse(command); 453var explicitValue = root.Parse($"{command} --use-config-source {value.ToString().ToLowerInvariant()}"); 457var bareFlag = root.Parse($"{command} --use-config-source"); 484var parsed = root.Parse($"{command} {option} {followingOption} --non-interactive"); 504var parsed = root.Parse($"{command} --use-config-source {value} --non-interactive");
Commands\NewCommandLocalTemplateTests.SourceManagement.cs (2)
127var result = provider.GetRequiredService<RootCommand>() 186var result = provider.GetRequiredService<RootCommand>().Parse(["template", "source", "add", "company", .. arguments]);
Commands\NewCommandTemplateConfigPersistenceTests.cs (2)
323var parseResult = newCommand.Parse(string.Join(" ", commandArguments)); 477var parseResult = newCommand.Parse(
Commands\NewCommandTests.cs (81)
41var result = command.Parse("new --help"); 65var result = command.Parse( 146var configResult = configCommand.Parse($"config set -g overrideStagingFeed {stagingFeed}"); 175var result = command.Parse($"new {KnownTemplateId.CSharpEmptyAppHost} --language csharp --name TemplateOut --output ./TemplateOut --localhost-tld false"); 203var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None"); 227var result = command.Parse($"new aspire-starter --use-redis-cache --test-framework {testFramework}"); 283var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None"); 316var result = command.Parse("new aspire-starter --name MyApp --output ./output --use-redis-cache --test-framework None"); 348var result = command.Parse("new aspire-starter --output notsrc --use-redis-cache --test-framework None"); 426var result = command.Parse("new aspire-starter --channel stable --use-redis-cache --test-framework None"); 503var result = command.Parse("new aspire-starter --channel stable --use-redis-cache --test-framework None"); 580var result = command.Parse("new aspire-starter --channel pr-12345 --name TestApp --output ./output --use-redis-cache --test-framework None"); 619var result = command.Parse("new aspire-starter --name MyApp --output ./output --use-redis-cache --test-framework None"); 651var result = command.Parse("new aspire-starter --name MyApp --output ./output --use-redis-cache --test-framework None --version 9.2.0"); 687var result = command.Parse("new"); 728var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None"); 825var result = command.Parse("new aspire-starter --name TestApp --output ./output"); 888var result = command.Parse($"new aspire-starter --use-redis-cache --test-framework None"); 947var result = command.Parse("new --name TestApp --output ./output"); 1004var result = command.Parse("new --name TestApp --output ./output"); 1069var result = command.Parse("new --name TestApp --output ./output"); 1104var result = command.Parse("new aspire-empty --name TestApp --output ./output"); 1165var result = command.Parse("new aspire-empty --name TestApp --output ./output"); 1228var result = command.Parse("new aspire-empty --name TestApp --output ./output"); 1256var result = command.Parse("new aspire-empty --name TestApp --output ./output --language typescript --localhost-tld false --suppress-agent-init"); 1326var result = command.Parse($"new aspire-empty --name TestApp --output ./output --language csharp --localhost-tld false --suppress-agent-init --channel staging --source {sourceOverride}"); 1371var result = command.Parse("new aspire-empty --name TestApp --output ./output --language csharp --localhost-tld false --suppress-agent-init --channel staging --source relative-feed"); 1424var result = command.Parse($"new aspire-empty --name TestApp --output ./output --language {language} --localhost-tld false --suppress-agent-init --source \"{sourceOverride}\""); 1450var result = command.Parse($"new aspire-empty --name TestApp --output ./output --language csharp --localhost-tld false --suppress-agent-init --source \"{sourceOverride}\""); 1485var result = command.Parse($"new aspire-empty --name TestApp --output ./output --language typescript --localhost-tld false --suppress-agent-init --source {sourceOverride}"); 1519var result = command.Parse("new aspire-empty --name TestApp --output ./output --language typescript --localhost-tld false --suppress-agent-init --source nuget.org"); 1553var result = command.Parse("new aspire-empty --name TestApp --output ./output --language typescript --localhost-tld false --suppress-agent-init"); 1592var result = command.Parse("new aspire-java-empty --name TestApp --output ./output --localhost-tld false"); 1628var result = command.Parse("new aspire-py-empty --name TestApp --output ./output --localhost-tld false"); 1656var result = command.Parse("new aspire-go-empty --name TestApp --output ./output --localhost-tld false"); 1673var result = command.Parse("new aspire-empty --name TestApp --output ./output --localhost-tld false"); 1702var result = command.Parse("new aspire-empty --name TestApp --output ./output --localhost-tld false --suppress-agent-init"); 1740var result = command.Parse($"new aspire-empty --name TestApp --output ./output --version {version} --localhost-tld false --suppress-agent-init"); 1774var result = command.Parse("new aspire-empty --name TestApp --output ./output --localhost-tld false --suppress-agent-init"); 1808var result = command.Parse("new aspire-empty --name TestApp --output ./output --localhost-tld --suppress-agent-init"); 1882var result = command.Parse("new aspire-empty --name TestApp --output ./output"); 1923var result = command.Parse("new aspire-ts-empty --name TestApp --output ./output --localhost-tld false"); 1971var result = command.Parse("new aspire-ts-empty --name TestApp --output ./output --channel stable --localhost-tld false"); 2012var result = command.Parse("new aspire-ts-empty --name TestApp --localhost-tld false"); 2090var result = command.Parse("new aspire-ts-empty --name TestApp --output ./output"); 2169var result = command.Parse("new aspire-ts-starter --name TestApp --output ./output --channel daily --localhost-tld false"); 2234var result = command.Parse("new aspire-ts-starter --name TestApp --output ./output --channel daily --localhost-tld false"); 2293var result = command.Parse($"new aspire-ts-starter --name TestApp --output ./output --channel daily --localhost-tld false --source \"{sourceOverride}\""); 2349var result = command.Parse($"new aspire-starter --name TestApp --output ./output --source {sourceOverride} --use-redis-cache --test-framework None"); 2405var result = command.Parse($"new aspire-ts-starter --name TestApp --output ./output --channel daily --localhost-tld false --source {sourceOverride}"); 2433var result = command.Parse("new aspire-empty --name TestApp --output ./output"); 2458var result = command.Parse("new aspire-empty --name TestApp --output ./output --agents none"); 2483var result = command.Parse("new aspire-empty --name TestApp --output ./output --agents copilot --skills aspire"); 2519var result = command.Parse($"new aspire-empty --name TestApp --output ./output --agents copilot --scope global --skills aspire{option}"); 2561var result = command.Parse("new"); 2609var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None"); 2653var result = command.Parse($"new aspire-starter --name MyProject --output {Path.Combine(workspace.WorkspaceRoot.FullName, "my-project")} --use-redis-cache --test-framework None"); 2697var result = command.Parse($"new aspire-starter --name MyProject --output {outputDir} --use-redis-cache --test-framework None --suppress-agent-init"); 2744var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None"); 2783var result = command.Parse("new aspire-ts-empty --name TestApp --output ./output"); 2838var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None --suppress-agent-init"); 2897var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None --suppress-agent-init"); 2954var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None"); 3016var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None --suppress-agent-init"); 3078var result = command.Parse($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false --suppress-agent-init"); 3141var result = command.Parse($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false --suppress-agent-init"); 3219var result = command.Parse( 3294var result = command.Parse($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false --suppress-agent-init"); 3363var result = command.Parse($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false --suppress-agent-init"); 3417var result = command.Parse($"new {KnownTemplateId.TypeScriptEmptyAppHost} --name {projectName} --version 9.2.0 --localhost-tld false --suppress-agent-init"); 3455var result = command.Parse("new aspire-empty --name TestApp --output ./output --localhost-tld false"); 3485var result = command.Parse("new aspire-empty --name TestApp --output ./output --suppress-agent-init"); 3512var result = command.Parse("new aspire-empty --name TestApp --output ./output --suppress-agent-init=false"); 3541var result = command.Parse("new aspire-empty --name TestApp --output ./output"); 3568var result = provider.GetRequiredService<NewCommand>().Parse( 3604var result = command.Parse($"new aspire-starter --name TestApp --output {existingDir.FullName} --use-redis-cache --test-framework None"); 3626var result = command.Parse($"new aspire-starter --name TestApp --output {emptyDir.FullName} --use-redis-cache --test-framework None"); 3661var result = command.Parse("new aspire-starter --use-redis-cache --test-framework None"); 3686var result = command.Parse($"new aspire-starter --name TestApp --output {invalidPath} --use-redis-cache --test-framework None"); 3732var result = command.Parse("new aspire-starter --name TestApp --output . --use-redis-cache --test-framework None"); 3791var result = command.Parse("new aspire-starter");
Commands\OptionWithLegacyTests.cs (2)
19var result = command.Parse("test --new-name primary-value --old-name legacy-value"); 34var result = command.Parse("test --old-name legacy-value");
Commands\ParseResultHelperTests.cs (26)
7using ParseResult = System.CommandLine.ParseResult; 101var parseResult = _command.Parse(commandLine); 114var parseResult = _command.Parse(["run", "--capture-profile-output", relativePath]); 126var parseResult = _command.Parse(["run", "--capture-profile-output", ""]); 138var parseResult = _command.Parse(["run", "--capture-profile-output=--"]); 153var parseResult = command.Parse(["test", "--value=--"]); 175var parentParseResult = command.Parse(["test", "--values=--flag"]); 183var childParseResult = command.Parse(["test", .. forwardedArguments.Tokens]); 194var parseResult = _command.Parse(["run", "-d", "--isolated"]); 208var parseResult = _command.Parse( 219var childParseResult = _command.Parse(["run", .. forwardedArguments.Tokens]); 233var parseResult = _command.Parse(["run", "--debug", "--secret", "value"]); 243var childParseResult = _command.Parse(["run", .. forwardedArguments.Tokens]); 255var parseResult = _command.Parse(["run", "--ApiKey", "sk-live-secret"]); 266var parseResult = _command.Parse(["run", "--debug", "--secret", "value"]); 276var parseResult = _command.Parse(["run", "--", "--ApiKey", "secret"]); 286var parseResult = _command.Parse(["add", "Aspire.Hosting.Redis"]); 294var parseResult = _command.Parse(["run", "--apphost", "path/to/App.csproj"]); 306var parseResult = _command.Parse(["add", "Aspire.Hosting.Redis", "--source", source]); 320var parseResult = _command.Parse(["add", "Aspire.Hosting.Redis", $"--source={source}"]); 334var parseResult = _command.Parse(["add", "Aspire.Hosting.Redis", "-s", source]); 345var parseResult = _command.Parse(["add", "Aspire.Hosting.Redis", "--source", source]); 356var parseResult = _command.Parse(["add", "Aspire.Hosting.Redis", "--source", source]); 367var parseResult = _command.Parse(["add", "Aspire.Hosting.Redis", "--source", source]); 387var parseResult = _command.Parse(["run", "--apphost", "same-value", "--", "same-value"]); 399private static ForwardedArguments GetForwardedArguments(ParseResult parseResult)
Commands\PsCommandTests.cs (21)
42var result = command.Parse("ps --help"); 57var result = command.Parse("ps"); 76var result = command.Parse($"ps --format {format}"); 94var result = command.Parse($"ps --format {format}"); 109var result = command.Parse("ps --format invalid"); 161var result = command.Parse($"ps --format json {outputOption}"); 213var result = command.Parse("ps --format json"); 251var result = command.Parse("ps --format json"); 297var result = command.Parse("ps --format json"); 339var result = command.Parse("ps --format json"); 385var result = command.Parse("ps"); 418var result = command.Parse("ps"); 459var result = command.Parse("ps"); 482var result = command.Parse("ps --format json"); 518var result = command.Parse("ps --format json"); 558var result = command.Parse("ps --format json --follow"); 644var result = command.Parse("ps --follow"); 692var result = command.Parse("ps --format json --follow"); 736var result = command.Parse("ps --format json"); 783var result = command.Parse("ps --format json"); 822var result = command.Parse("ps --format json");
Commands\PublishCommandPromptingIntegrationTests.cs (20)
47var result = command.Parse("publish"); 93var result = command.Parse("publish"); 145var result = command.Parse("publish"); 192var result = command.Parse("publish"); 238var result = command.Parse("publish"); 287var result = command.Parse("publish"); 322var result = command.Parse("publish"); 370var result = command.Parse("publish"); 449var result = command.Parse("publish"); 517var result = command.Parse("publish"); 569var result = command.Parse("publish"); 624var result = command.Parse("publish"); 695var result = command.Parse("publish --debug"); 739var result = command.Parse("publish"); 782var result = command.Parse("publish"); 831var result = command.Parse("publish"); 877var result = command.Parse("publish"); 917var result = command.Parse("publish"); 963var result = command.Parse("publish"); 997var result = command.Parse("publish");
Commands\PublishCommandTests.cs (6)
24var result = command.Parse("publish --help"); 52var result = command.Parse("publish --apphost invalid.csproj"); 83var result = command.Parse("publish --apphost valid.csproj"); 114var result = command.Parse("publish --apphost valid.csproj"); 157var result = command.Parse("publish --apphost valid.csproj"); 226var result = command.Parse("publish");
Commands\ResourceCommandTests.cs (74)
30var result = command.Parse("resource --help"); 62var result = command.Parse("resource web --non-interactive --help"); 93var result = command.Parse("resource web --help"); 118var result = command.Parse("resource web --help"); 141var result = command.Parse("resource web --help"); 182var result = command.Parse($"""resource web --apphost "{appHostDirectory.FullName}" --help"""); 229var result = command.Parse($"""resource web --apphost "{appHostProjectFile.FullName}" --help"""); 272var result = command.Parse($"""resource web --apphost "{symlinkedAppHostPath}" --help"""); 301var result = command.Parse("resource hidden-worker --include-hidden --help"); 317var result = command.Parse("resource"); 336var result = command.Parse($"""resource {arguments}"""); 353var result = command.Parse("resource myresource"); 373var result = command.Parse($"""resource myresource {arguments}"""); 390var result = command.Parse("resource myresource my-command --help"); 404var result = command.Parse("resource myresource my-command --apphost /path/to/project.csproj --help"); 426var result = command.Parse($"resource myresource {commandName} --help"); 458var result = command.Parse($"resource myresource {commandName}"); 497var result = command.Parse("resource myresource my-command"); 522var result = command.Parse("resource myresource start --apphost /path/to/project.csproj --help"); 545var result = command.Parse("resource myresource Start"); 582var result = command.Parse("""resource web-browser-automation fill-browser "#name" Aspire"""); 609var result = command.Parse("""resource web-browser-automation click-browser"""); 646var result = command.Parse("""resource web-browser-automation wait-for-browser "--text=Submitted Aspire!" --timeoutMilliseconds=500"""); 684var result = command.Parse("resource mydb configure -- --AppHost primary"); 719var result = command.Parse("resource greeting parameter-set --value \"Hello world\""); 752var result = command.Parse(["resource", "web-browser-automation", "click-browser", """{"selector":"#submit"}"""]); 779var result = command.Parse("""resource web-browser-automation navigate-browser "https://example.com/?q=aspire" """); 806var result = command.Parse("""resource web-browser-automation click-browser "#submit" extra"""); 833var result = command.Parse("""resource web-browser-automation click-browser --selector "#submit" --count 2"""); 860var result = command.Parse("""resource web-browser-automation configure --verbose"""); 880var result = command.Parse("""resource web-browser-automation configure -- --selector "#submit" """); 916var result = command.Parse("""resource web-browser-automation wait-for-browser --timeout-milliseconds 500"""); 944var result = command.Parse("""resource web-browser-automation Configure --message hello"""); 980var result = command.Parse("""resource web-browser-automation configure --timeout-milliseconds=500 --proxy"""); 1011var result = command.Parse($"""resource web-browser-automation configure {arguments}"""); 1046var result = command.Parse("""resource web-browser-automation configure --flavor chocolate"""); 1082var result = command.Parse("""resource web-browser-automation configure --flavor strawberry"""); 1112var result = command.Parse("""resource web-browser-automation configure --unknown value"""); 1138var result = command.Parse("""resource web-browser-automation configure --mm ss"""); 1165var result = command.Parse("""resource web-browser-automation configure --proxy maybe"""); 1194var result = command.Parse("""resource web-browser-automation configure --save-to-user-secrets true"""); 1234var result = command.Parse("""resource web-browser-automation configure --timeout-seconds 0"""); 1269var result = command.Parse("resource myresource my-command"); 1302var result = command.Parse("""resource web configure"""); 1338var result = command.Parse("""resource web-browser-automation configure --flavor strawberry"""); 1368var result = command.Parse("""resource web-browser-automation configure"""); 1401var result = command.Parse($"""resource web-browser-automation configure {arguments}"""); 1430var result = command.Parse("""resource web-browser-automation configure --timeoutMilliseconds 1 --timeout-milliseconds 2"""); 1459var result = command.Parse("""resource web-browser-automation configure --message first --message second"""); 1489var result = command.Parse("""resource web-browser-automation wait-for-browser --timeout-milliseconds 500"""); 1521var result = command.Parse("""resource web-browser-automation wait-for-browser"""); 1559var result = command.Parse("""resource web-browser-automation wait-for-browser --timeout-milliseconds not-a-number"""); 1595var result = command.Parse("""resource web-browser-automation fill-browser --selector "#name" Aspire"""); 1630var result = command.Parse("""resource web-browser-automation configure -- --log-level Debug"""); 1659var result = command.Parse("""resource web-browser-automation configure -- --message "from delimiter" --timeout-milliseconds 10"""); 1688var result = command.Parse("resource hidden-worker configure --include-hidden -- --message \"from hidden resource\""); 1717var result = command.Parse("""resource web-browser-automation configure --log-level Debug"""); 1752var result = command.Parse("""resource web-browser-automation configure --no-proxy localhost"""); 1796var result = command.Parse("""resource web-browser-automation configure --load-arguments -- --browser Chrome"""); 1840var result = command.Parse("""resource web-browser-automation configure --load-arguments -- --browser Chrome"""); 1876var result = command.Parse("""resource web-browser-automation configure --load-arguments -- --browser Chrome"""); 1915var result = command.Parse("""resource argument-commands dependent-arguments --load-arguments -- --category fruit"""); 1949var result = command.Parse("""resource argument-commands dependent-arguments -- --category=fruit --item=banana --quantity=2 --priority=express"""); 1989var result = command.Parse("""resource web-browser-automation configure --no-proxy"""); 2006var result = command.Parse("""resource myresource --help"""); 2045var result = command.Parse("""resource web-browser-automation wait-for-browser --help"""); 2079var result = command.Parse("""resource web-browser-automation wait-for-browser --help -- --selector #main"""); 2109var result = command.Parse("""resource web-browser-automation custom-command -- --help"""); 2147var result = command.Parse("""resource web-browser-automation configure --help"""); 2177var result = command.Parse("""resource web-browser-automation configure --help"""); 2214var result = command.Parse("""resource web-browser-automation configure --help"""); 2235var result = command.Parse("""resource web-browser-automation configure --help"""); 2261var result = command.Parse("""resource web-browser-automation configure --help"""); 2312var result = command.Parse("""resource argument-commands all-argument-types --help""");
Commands\RestoreCommandTests.cs (2)
40var result = command.Parse($"restore --apphost {appHostFile.FullName}"); 78var result = command.Parse($"restore --apphost {appHostFile.FullName}");
Commands\RootCommandTests.cs (10)
56var result = command.Parse("--version"); 79var result = command.Parse("-v"); 104var result = command.Parse("--version"); 155var result = command.Parse("--version"); 213var result = command.Parse("--help"); 227var result = command.Parse("--nologo --help"); 246var result = command.Parse("--help"); 266var result = command.Parse("run --capture-profile --capture-profile-output profile.zip --capture-profile-delay 1"); 283var result = command.Parse( 347var result = command.Parse("--help");
Commands\RunCommandTests.cs (76)
52var result = command.Parse("run --help"); 114var result = command.Parse(["run", optionName, "E2E"]); 146var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--launch-profile", "E2E"]); 188var result = command.Parse(["run", "--detach", "--apphost", appHostFile.FullName, "--launch-profile", "E2E"]); 239var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--launch-profile", "missing"]); 284var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--launch-profile", "container"]); 320var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--launch-profile", "E2E"]); 344var result = command.Parse("run"); 387var result = command.Parse($"run --apphost {appHostFile.FullName}"); 428var result = command.Parse($"run --apphost {appHostFile.FullName}"); 476var result = command.Parse($"run --apphost {appHostFile.FullName}"); 543var result = command.Parse($"run --apphost {appHostFile.FullName}"); 635var result = command.Parse($"run --apphost {appHostFile.FullName}"); 703var result = command.Parse($"run --apphost {appHostFile.FullName}"); 756var result = command.Parse("run"); 933var result = command.Parse($"run --apphost {appHostFile.FullName}"); 1040var result = command.Parse($"run --apphost {appHostFile.FullName}"); 1138var result = command.Parse($"run --apphost {appHostFile.FullName}"); 1218var result = command.Parse("run"); 1245var result = command.Parse("run"); 1275var result = command.Parse("run"); 1293var result = command.Parse("run"); 1310var result = command.Parse("run --apphost /tmp/doesnotexist.csproj"); 1374var result = command.Parse($"run --apphost {appHostProjectFile.FullName}"); 1404var result = command.Parse("run"); 1434var result = command.Parse("run"); 1466var result = command.Parse($"run --apphost {appHostProjectFile.FullName}"); 1526var result = command.Parse($"run --apphost {appHostProjectFile.FullName}"); 1549var result = command.Parse("run --detach"); 1579var parentResult = parentCommand.Parse($"run --detach --apphost {appHostFile.FullName}"); 1618var childResult = childCommand.Parse("run"); 1663var result = command.Parse( 1694var result = command.Parse("run"); 1800var result = command.Parse($"run --apphost {appHostFile.FullName}"); 1870var result = command.Parse($"run --apphost {appHostFile.FullName}"); 1938var result = command.Parse($"run --apphost {appHostFile.FullName}"); 1995var result = command.Parse($"run --apphost {appHostFile.FullName}"); 2054var result = command.Parse($"run --apphost {appHostFile.FullName}"); 2125var result = command.Parse($"run --apphost {appHostFile.FullName}"); 2318var result = command.Parse($"run --apphost {appHostFile.FullName}"); 2379var result = command.Parse($"run --apphost {appHostFile.FullName}"); 2431var result = command.Parse($"run --apphost {appHostFile.FullName}"); 2503var result = command.Parse($"run --apphost {appHostFile.FullName}"); 2660var result = command.Parse("run"); 2728var result = command.Parse("run"); 2859var result = command.Parse("run"); 2917var result = command.Parse("run"); 2965var result = command.Parse("run --capture-profile"); 3008var result = command.Parse("run --capture-profile"); 3059var result = command.Parse("run --capture-profile"); 3110var result = command.Parse("run"); 3221var result = command.Parse("run"); 3327var result = command.Parse("run"); 3397var result = command.Parse("run"); 3466var result = command.Parse("run --start-debug-session"); 3526var result = command.Parse("run"); 3590var result = command.Parse("run"); 3657var result = command.Parse("run"); 3716var result = command.Parse("run"); 3771var result = command.Parse("run"); 3828var result = command.Parse("run"); 3887var result = command.Parse("run"); 4294var result = command.Parse("run --no-build"); 4375var result = command.Parse("run --isolated"); 4436var result = command.Parse("run --no-build"); 4452var result = command.Parse("run -- --custom-arg value --launch-profile E2E"); 5081var result = command.Parse(explicitAppHost ? $"run --apphost \"{appHostFile.FullName}\"" : "run"); 5116var result = command.Parse( 5179var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--debug", "--", "--custom-arg", "value"]); 5207var result = command.Parse(["run", "--apphost", appHostFile.FullName, "--debug", "--secret", "value"]); 5217var childParseResult = command.Parse(["run", .. options.Args]); 5302var result = command.Parse("run --non-interactive"); 5375var result = command.Parse("run --no-build"); 5430var result = command.Parse(args); 5472var result = command.Parse(args); 5524var childParseResult = command.Parse(forwardedArguments);
Commands\SdkCommandTests.cs (2)
99var result = command.Parse("sdk"); 114var result = command.Parse("sdk --help");
Commands\SdkDumpCommandTests.cs (16)
34var result = command.Parse("sdk dump --help"); 56var result = command.Parse($"sdk dump --format {format}"); 69var result = command.Parse("sdk dump /nonexistent/path/to/integration.csproj"); 84var result = command.Parse("sdk dump @13.2.0"); 99var result = command.Parse("sdk dump Aspire.Hosting.Redis@"); 114var result = command.Parse("sdk dump Aspire.Hosting.Redis@not-a-version!!!"); 129var result = command.Parse("sdk dump some-random-string"); 144var result = command.Parse("sdk dump Aspire.Hosting.Redis@13.2.0"); 157var result = command.Parse("sdk dump Aspire.Hosting.Redis@13.2.0 Aspire.Hosting.PostgreSQL@13.2.0"); 170var result = command.Parse("sdk dump --format ci --output-directory ./ats Aspire.Hosting.Redis@13.2.0"); 183var result = command.Parse("sdk dump --format ci --output ./all.ats.txt --output-directory ./ats Aspire.Hosting.Redis@13.2.0"); 198var result = command.Parse("sdk dump --output-directory ./ats Aspire.Hosting.Redis@13.2.0"); 213var result = command.Parse("sdk dump --format ci --output-directory ./ats"); 228var result = command.Parse("sdk dump Aspire.Hosting.Redis@13.2.0-preview.1"); 243var result = command.Parse("sdk dump Aspire.Hosting.Redis@@13.2.0"); 276var result = command.Parse(["sdk", "dump", "--format", "ci", outputOption,
Commands\SdkInstallerTests.cs (6)
46var result = command.Parse("run"); 71var result = command.Parse("add redis"); 94var result = command.Parse("new aspire-starter"); 133var result = command.Parse("publish"); 171var result = command.Parse("deploy"); 193var result = command.Parse("run");
Commands\SecretCommandTests.cs (21)
281var result = command.Parse(arguments.ToArray()); 323var result = provider.GetRequiredService<RootCommand>().Parse(["secret", "set", "Parameters:api_key", "--environment", environmentName]); 383var result = provider.GetRequiredService<RootCommand>().Parse(["secret", "set", "Parameters:api_key"]); 429var result = command.Parse(["secret", "set", "Parameters:api_key", "--envvar", "MISSING_API_KEY"]); 475var result = command.Parse(["secret", "set", "Parameters:api_key", .. sourceArguments]); 529var result = command.Parse(arguments); 567var result = provider.GetRequiredService<RootCommand>().Parse("secret set --help"); 594var result = command.Parse($"secret path --apphost \"{appHostFile.FullName}\""); 620var result = command.Parse($"secret path --apphost \"{appHostFile.FullName}\""); 647var setResult = command.Parse($"secret set --environment Production Parameters:api_key prod-secret --apphost \"{appHostFile.FullName}\""); 655var getResult = command.Parse($"secret get --environment Production Parameters:api_key --apphost \"{appHostFile.FullName}\""); 662var listResult = command.Parse($"secret list --environment Production --format json --apphost \"{appHostFile.FullName}\""); 668var defaultGetResult = command.Parse($"secret get Parameters:api_key --apphost \"{appHostFile.FullName}\""); 673var deleteResult = command.Parse($"secret delete --environment Production Parameters:api_key --apphost \"{appHostFile.FullName}\""); 678var deletedGetResult = command.Parse($"secret get --environment Production Parameters:api_key --apphost \"{appHostFile.FullName}\""); 763var setDevelopmentResult = command.Parse($"secret set Parameters:api_key dev-secret --apphost \"{appHostFile.FullName}\""); 770var setProductionResult = command.Parse($"secret set --environment Production Azure:SubscriptionId prod-subscription --apphost \"{appHostFile.FullName}\""); 776var listAllResult = command.Parse($"secret list --all --format json --apphost \"{appHostFile.FullName}\""); 816var getLegacyResult = command.Parse($"secret get Legacy:Value --apphost \"{appHostFile.FullName}\""); 822var setResult = command.Parse($"secret set New:Value new --apphost \"{appHostFile.FullName}\""); 860var result = command.Parse($"secret {arguments} --environment \"{environment}\"");
Commands\StartCommandTests.cs (21)
49var result = command.Parse("start"); 67var result = command.Parse("start --help"); 87var result = command.Parse("start --help"); 104var result = command.Parse("start --no-build --help"); 118var result = command.Parse("start --format json --help"); 132var result = command.Parse("start --isolated --help"); 148var result = command.Parse(["start", optionName, "E2E"]); 187var result = command.Parse(["start", "--apphost", appHostFile.FullName, "--launch-profile", "E2E"]); 215var result = command.Parse("start"); 233var result = command.Parse("start -- --custom-arg value --launch-profile E2E"); 279var result = command.Parse( 319var result = command.Parse("start"); 349var result = command.Parse("start --format json"); 394var result = command.Parse($"start --apphost {appHostFile.FullName}"); 435var result = command.Parse( 510var result = command.Parse("start"); 539var result = command.Parse($"start --apphost {appHostFile.FullName} --start-debug-session"); 564var result = provider.GetRequiredService<RootCommand>().Parse($"start --apphost {appHostFile.FullName}"); 602var result = command.Parse($"start --apphost {appHostFile.FullName}"); 638var result = command.Parse(string.Format(CultureInfo.InvariantCulture, commandTemplate, appHostFile.FullName)); 739var childParseResult = command.Parse(forwardedArguments);
Commands\StopCommandTests.cs (36)
38var result = command.Parse("stop --help"); 53var result = command.Parse("stop myresource"); 217var result = provider.GetRequiredService<RootCommand>().Parse(commandLine); 245var result = provider.GetRequiredService<RootCommand>().Parse($"stop --pid {int.MaxValue - 1}"); 339var result = command.Parse("stop --apphost missing-directory"); 370var result = command.Parse($"stop --apphost \"{appHostDirectory.FullName}\""); 404var result = command.Parse("stop --all"); 440var result = command.Parse("stop --all"); 476var result = command.Parse("stop"); 529var result = command.Parse("stop"); 563var result = command.Parse($"stop --apphost \"{appHostFile.FullName}\""); 604var result = command.Parse("stop"); 643var result = command.Parse("stop"); 685var result = command.Parse("stop --all"); 726var result = command.Parse(commandLine); 762var result = command.Parse($"stop --force{volumesOption} --apphost \"{appHostFile.FullName}\""); 796var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 842var result = command.Parse("stop --force"); 880var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 914var result = command.Parse("stop --force"); 953var result = command.Parse("stop --force"); 990var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1033var result = command.Parse($"stop --force{volumesOption} --apphost \"{appHostFile.FullName}\""); 1073var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1112var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1156var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1198var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1240var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1278var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1316var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1350var result = command.Parse($"stop --force --apphost \"{appHostFile.FullName}\""); 1387var result = command.Parse("stop --force"); 1425var result = command.Parse("stop --force"); 1445var result = command.Parse("stop --force --all"); 1467var result = command.Parse("stop --volumes"); 1506var result = command.Parse("stop");
Commands\TelemetryCommandTests.cs (3)
32var result = command.Parse("otel"); 297var result = command.Parse($"otel {otelCommand} --dashboard-url http://localhost:18888"); 383var result = command.Parse(
Commands\TelemetryFollowTests.cs (1)
276var parsed = command.Parse($"otel {commandName} --format Json{(follow ? " --follow" : "")}{(standalone ? " --dashboard-url http://localhost:18888" : "")}");
Commands\TelemetryLogsCommandTests.cs (17)
30var result = command.Parse("otel logs"); 48var result = command.Parse($"telemetry logs --limit {limitValue}"); 74var result = command.Parse("otel logs"); 109var result = command.Parse("otel logs"); 139var result = command.Parse("otel logs"); 219var result = command.Parse("otel logs --dashboard-url http://localhost:18888"); 271var result = command.Parse("otel logs --dashboard-url http://localhost:18888 --api-key my-secret-key"); 293var result = command.Parse("otel logs --dashboard-url http://localhost:18888 --apphost TestAppHost.csproj"); 316var result = command.Parse(["otel", "logs", "--dashboard-url", "not a URL user:password token=secret-value"]); 359var result = command.Parse("otel logs --dashboard-url http://localhost:18888"); 402var result = command.Parse("otel logs --dashboard-url http://localhost:18888"); 441var result = command.Parse("otel logs --dashboard-url http://localhost:18888"); 471var result = command.Parse("otel logs --dashboard-url http://localhost:18888/login?t=sometoken"); 511var result = command.Parse("otel logs --dashboard-url http://localhost:18888"); 567var result = command.Parse("otel logs --dashboard-url http://localhost:18888/login?t=abc123"); 649var result = command.Parse("otel logs --format json --dashboard-url http://localhost:18888"); 715var result = command.Parse("otel logs --dashboard-url http://localhost:18888 --search timeout");
Commands\TelemetrySpansCommandTests.cs (12)
29var result = command.Parse("otel spans"); 47var result = command.Parse($"telemetry spans --limit {limitValue}"); 73var result = command.Parse("otel spans"); 104var result = command.Parse("otel spans"); 137var result = command.Parse("otel spans"); 221var result = command.Parse("otel spans --dashboard-url http://localhost:18888"); 245var result = command.Parse("otel spans --dashboard-url http://localhost:18888 --apphost TestAppHost.csproj"); 283var result = command.Parse("otel spans --dashboard-url http://localhost:18888"); 323var result = command.Parse("otel spans --dashboard-url http://localhost:18888"); 407var result = command.Parse("otel spans --format json --dashboard-url http://localhost:18888"); 478var result = command.Parse("otel spans --dashboard-url http://localhost:18888 --search \"GET /index\""); 525var result = command.Parse("otel spans --dashboard-url http://localhost:18888 --search \"duration:>=50.5\"");
Commands\TelemetryTracesCommandTests.cs (16)
32var result = command.Parse("otel traces"); 130var result = command.Parse("otel traces --format json -n 5"); 216var result = command.Parse("otel traces --format json -n 5 --dashboard-url http://dashboard.dev.localhost:18888"); 245var result = command.Parse($"telemetry traces --limit {limitValue}"); 271var result = command.Parse("otel traces"); 322var result = command.Parse("otel traces"); 369var result = command.Parse("otel traces"); 535var result = command.Parse("otel traces --trace-id abc1234567890def"); 702var result = command.Parse("otel traces --trace-id abc1234567890def"); 756var result = command.Parse("otel traces --dashboard-url http://localhost:18888"); 780var result = command.Parse("otel traces --dashboard-url http://localhost:18888 --apphost TestAppHost.csproj"); 818var result = command.Parse("otel traces --dashboard-url http://localhost:18888"); 901var result = command.Parse("otel traces --format json --dashboard-url http://localhost:18888"); 985var result = command.Parse("otel traces --trace-id abc1234567890def --format json --dashboard-url http://localhost:18888"); 1034var result = command.Parse("otel traces --dashboard-url http://localhost:18888 --search frontend"); 1081var result = command.Parse("otel traces --dashboard-url http://localhost:18888 --search \"duration:>=50.5\"");
Commands\TemplateSourceStartupTests.cs (1)
432var parseResult = host.Services.GetRequiredService<RootCommand>().Parse(args);
Commands\TerminalCommandTests.cs (21)
26var result = command.Parse("terminal --help"); 42var result = command.Parse("terminal"); 56var result = command.Parse("terminal attach"); 70var result = command.Parse("terminal attach myresource"); 90var result = command.Parse("terminal attach myresource"); 110var result = command.Parse("terminal attach does-not-exist"); 135var result = command.Parse("terminal attach myresource"); 160var result = command.Parse("terminal attach myresource"); 178var result = provider.GetRequiredService<RootCommand>().Parse(arguments); 215var result = provider.GetRequiredService<RootCommand>().Parse( 256var result = command.Parse("terminal attach myresource"); 311var result = command.Parse("terminal attach myresource" + options); 329var result = command.Parse("terminal ps"); 352var result = command.Parse("terminal ps"); 376var result = command.Parse("terminal ps"); 423var result = command.Parse("terminal ps"); 458var result = command.Parse("terminal ps --format json"); 581var result = command.Parse("terminal ps --format json --verbose"); 692var result = command.Parse("terminal ps --format json"); 764var result = command.Parse("terminal ps --format json"); 804var result = command.Parse("terminal ps --format json");
Commands\TerminalCommandViewerOptionTests.cs (3)
26var result = command.Parse("terminal attach --help"); 54var result = command.Parse("terminal attach myresource"); 69var result = command.Parse("terminal attach myresource --viewer");
Commands\TerminalTapePlayCommandTests.cs (20)
32var result = provider.GetRequiredService<RootCommand>().Parse(arguments); 44var result = provider.GetRequiredService<RootCommand>().Parse("terminal tape play shell --tape-file probe.tape"); 64var result = provider.GetRequiredService<RootCommand>().Parse( 88var result = provider.GetRequiredService<RootCommand>().Parse( 104var result = provider.GetRequiredService<RootCommand>().Parse("terminal tape play shell --tape-file probe.tape"); 151var result = provider.GetRequiredService<RootCommand>().Parse( 177var result = provider.GetRequiredService<RootCommand>().Parse( 244var result = provider.GetRequiredService<RootCommand>().Parse( 290var result = provider.GetRequiredService<RootCommand>().Parse( 344var result = provider.GetRequiredService<RootCommand>().Parse( 372var result = provider.GetRequiredService<RootCommand>().Parse( 402var result = provider.GetRequiredService<RootCommand>().Parse( 427var result = provider.GetRequiredService<RootCommand>().Parse( 451var invalid = command.Parse("terminal tape play shell --tape-file play.tape"); 458var valid = command.Parse("terminal tape play shell --tape-file play.tape"); 476var result = provider.GetRequiredService<RootCommand>().Parse("terminal tape play shell --tape-file wait.tape"); 494var result = provider.GetRequiredService<RootCommand>().Parse("terminal tape play shell --tape-file wait.tape --timeout 5"); 513var result = provider.GetRequiredService<RootCommand>().Parse("terminal tape play shell --tape-file wait.tape"); 532var result = provider.GetRequiredService<RootCommand>().Parse("terminal tape play shell --tape-file wait.tape"); 550var result = provider.GetRequiredService<RootCommand>().Parse("terminal tape play shell --tape-file probe.tape");
Commands\TrayCommandTests.cs (1)
574var result = provider.GetRequiredService<RootCommand>().Parse(arguments);
Commands\TrayProtocolCommandTests.cs (4)
38var result = command.Parse($"ps {outputOption} --follow --format json --non-interactive --nologo"); 95var result = provider.GetRequiredService<RootCommand>().Parse(arguments); 240var result = provider.GetRequiredService<RootCommand>().Parse($"stop {options} --apphost \"{path}\""); 288var result = provider.GetRequiredService<RootCommand>().Parse(
Commands\UpdateCommandTests.cs (54)
40var result = command.Parse("update --help"); 73var result = command.Parse(commandLine); 125var result = command.Parse($"update --apphost {appHostProjectFile.FullName}"); 174var result = command.Parse($"update --apphost AppHost.csproj"); 287var result = command.Parse("update"); 364var result = command.Parse("update --apphost AppHost.csproj --channel stable"); 478var result = command.Parse("update --apphost apphost.ts"); 537var result = command.Parse("update --apphost apphost.ts"); 592var result = command.Parse("update --apphost apphost.ts"); 669var result = command.Parse("update --apphost AppHost.csproj --channel stable"); 748var result = command.Parse("update --apphost AppHost.csproj --channel stable"); 825var result = command.Parse("update --apphost AppHost.csproj --channel stable"); 868var result = command.Parse("update --apphost AppHost.csproj"); 911var result = command.Parse("update --apphost AppHost.csproj --yes"); 985var result = command.Parse("update --apphost AppHost.csproj --channel pr-12658"); 1058var result = command.Parse("update --apphost AppHost.csproj --channel pr-12658"); 1092var result = command.Parse("update --apphost AppHost.csproj --migrate --yes"); 1128var result = command.Parse("update --apphost AppHost.csproj --migrate"); 1155var result = command.Parse("update --apphost AppHost.csproj --migrate --yes"); 1185var result = command.Parse("update --apphost AppHost.csproj --migrate --yes"); 1269var result = command.Parse("update --self"); 1301var result = command.Parse("update --self"); 1336var result = command.Parse("update --self"); 1460var result = command.Parse(commandLine); 1491var result = command.Parse("update --self"); 1529var result = command.Parse("update"); 1573var result = command.Parse("update --self --channel daily"); 1600var result = command.Parse($"update --self --channel {requestedChannel}"); 1636var result = command.Parse("update --self --channel staging"); 1680var result = command.Parse("update --self --channel staging"); 1725var result = command.Parse("update --self --quality daily"); 1766var result = command.Parse("update --self --channel daily"); 1829var result = command.Parse("update --channel daily"); 1894var result = command.Parse("update --quality daily"); 1948var result = command.Parse("update --quality invalid"); 2015var result = command.Parse("update --channel stable --quality daily"); 2079var result = command.Parse("update"); 2141var result = command.Parse("update"); 2299var result = command.Parse("update"); 2366var result = command.Parse(channelFromConfig ? "update" : "update --channel staging"); 2601var result = command.Parse("update"); 2675var result = command.Parse("update"); 2760var result = command.Parse("update"); 2816var result = command.Parse($"update --apphost \"{appHostFile.FullName}\""); 3003var result = provider.GetRequiredService<RootCommand>().Parse(arguments); 3301var result = command.Parse(updateArgs); 3339var result = command.Parse("update --self"); 3380var result = command.Parse("update --self"); 3425var result = command.Parse("update --self"); 3470var result = command.Parse("update --self"); 3504var result = command.Parse("update --self --channel stable"); 3570var result = command.Parse("update --yes --channel stable --non-interactive"); 3690var result = command.Parse(updateArgs); 3856var result = command.Parse(commandLine);
Commands\WaitCommandTests.cs (15)
26var result = command.Parse("wait --help"); 41var result = command.Parse("wait"); 56var result = command.Parse("wait myresource --help"); 70var result = command.Parse("wait myresource --apphost /path/to/project.csproj --help"); 84var result = command.Parse("wait myresource --status up --help"); 98var result = command.Parse("wait myresource --timeout 60 --help"); 115var result = command.Parse($"wait myresource --status {status} --help"); 132var result = command.Parse($"wait myresource --status {status} --help"); 164var result = command.Parse("wait nonexistent --timeout 5"); 206var result = command.Parse("wait myapp --status up --timeout 5"); 242var result = command.Parse("wait mydb --status healthy --timeout 5"); 274var result = command.Parse("wait mydb --status healthy --timeout 2"); 310var result = command.Parse("wait worker --status down --timeout 5"); 342var result = command.Parse("wait myapp --status up --timeout 5"); 384var result = command.Parse("wait myapp --status down --timeout 5");
Configuration\ConfigSourceServiceTests.cs (1)
2240private static ParseResult ParseConsent(bool? accepted)
Interaction\ConsoleInteractionServiceTests.cs (22)
2071var parseResult = command.Parse("--value bad-value"); 2154var parseResult = command.Parse(""); 2184var parseResult = command.Parse(""); 2201var parseResult = command.Parse(""); 2283var parseResult = command.Parse(""); 2295var parseResult = command.Parse(""); 2311var parseResult = command.Parse(""); 2341var parseResult = command.Parse("--choice invalid"); 2363var parseResult = command.Parse("--items invalid"); 2390var parseResult = command.Parse("--items invalid"); 2416var parseResult = command.Parse("--items invalid"); 2448var parseResult = command.Parse("--items invalid"); 2474var parseResult = command.Parse(""); 2492var parseResult = command.Parse("--choice option1"); 2510var parseResult = command.Parse("--items alpha,gamma"); 2525var parseResult = command.Parse("--yes"); 2537var parseResult = command.Parse("--include"); 2599var parseResult = command.Parse(""); 2616var parseResult = command.Parse("--choice option1"); 2635var parseResult = command.Parse("--items alpha,gamma"); 2654var parseResult = command.Parse(""); 2673var parseResult = command.Parse("");
NuGet\NuGetPackagePrefetcherTests.cs (3)
296var parseResult = newCommand.Parse(commandLine); 488ParseResult? parseResult = null) 550protected override Task<CommandResult> ExecuteAsync(ParseResult parseResult, CancellationToken cancellationToken)
Projects\DotNetAppHostProjectTests.cs (1)
1251var parseResult = rootCommand.Parse(
Templating\DotNetTemplateFactoryTests.cs (2)
485public Task<string> PromptForProjectNameAsync(string defaultName, ParseResult parseResult, CancellationToken cancellationToken) 488public Task<string> PromptForOutputPath(string defaultPath, ParseResult parseResult, Func<string, ValidationResult>? validator = null, Func<string, string>? outputPathResolver = null, CancellationToken cancellationToken = default)
Templating\JavaStarterScaffoldTests.cs (1)
147var parseResult = newCommand.Parse(
TestServices\TestNewCommandPrompter.cs (2)
31public override Task<string> PromptForProjectNameAsync(string defaultName, ParseResult parseResult, CancellationToken cancellationToken) 40public override Task<string> PromptForOutputPath(string path, ParseResult parseResult, Func<string, ValidationResult>? validator = null, Func<string, string>? outputPathResolver = null, CancellationToken cancellationToken = default)
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
45rootCommand.SetAction((ParseResult parseResult) =>
Aspire.TerminalHost (1)
TerminalHostArgs.cs (1)
113var parseResult = command.Parse(args);
cdac-build-tool (1)
ComposeCommand.cs (1)
28private async Task<int> Run(ParseResult parse, CancellationToken token = default)
crossgen2 (7)
Crossgen2RootCommand.cs (2)
177public ParseResult Result { get; private set; } 326public static void PrintExtendedHelp(ParseResult _)
parent\parent\Common\CommandLineHelpers.cs (5)
163public static RootCommand UseExtendedHelp(this RootCommand command, Action<ParseResult> customizer) 177public static void MakeReproPackage(string makeReproPath, string outputFilePath, string[] args, ParseResult res, IEnumerable<string> inputOptions, IEnumerable<string> outputOptions = null) 476private readonly Action<ParseResult> _customizer; 478public CustomizedHelpAction(HelpOption helpOption, Action<ParseResult> customizer) 484public override int Invoke(ParseResult parseResult)
dotnet-aot (88)
NativeEntryPoint.cs (5)
165ParseResult? parseResult = null; 169if (Parser.TryParseGenericCommandHelp(args, out ParseResult? genericHelpParseResult)) 301private static bool TryInvokeExternalCommand(ParseResult parseResult, string[] args, string sdkDir, Activity? mainActivity, string? globalJsonState, out int exitCode, out bool success) 306ParseResult? fileBasedRunParseResult = parseResult.TryParseFileBasedAppAsRun(); 412private static void SendAotParserTelemetry(ParseResult parseResult, string? globalJsonState)
parent\dotnet\CliSchema.cs (1)
80public static void PrintCliSchema(ParseResult parseResult, TextWriter outputWriter, ITelemetryClient? telemetryClient)
parent\dotnet\CommandBase.cs (5)
13protected ParseResult _parseResult; 15protected CommandBase(ParseResult parseResult) : this(parseResult, CommandServices.CreateDefault()) 19protected CommandBase(ParseResult parseResult, CommandServices services) : this(services) 39public abstract class CommandBase<TDefinition>(ParseResult parseResult, CommandServices services) : CommandBase(parseResult, services) 42public CommandBase(ParseResult parseResult) : this(parseResult, CommandServices.CreateDefault())
parent\dotnet\CommandInvocation.cs (1)
27internal static int ExecuteInternalCommand(ParseResult parseResult)
parent\dotnet\CommandParsingException.cs (2)
10public CommandParsingException(string message, ParseResult? parseResult = null) 17public ParseResult? ParseResult;
parent\dotnet\Commands\Hidden\Complete\CompleteCommand.cs (5)
15public static int Run(ParseResult parseResult) 22var result = Parser.Parse(["dotnet", "complete", .. args]); 26public static int RunWithReporter(ParseResult result, IReporter reporter) 60private static CompletionItem[] Completions(ParseResult complete) 72var result = Parser.Parse(input);
parent\dotnet\Commands\NuGet\NuGetCommand.cs (1)
29public static int Run(ParseResult parseResult)
parent\dotnet\Commands\Run\AotRunCommand.cs (6)
37internal static int Execute(ParseResult parseResult) 50ParseResult parseResult, 256ParseResult parseResult, 288ParseResult parseResult, 320ParseResult parseResult, 428private static Option? GetUnsupportedOption(ParseResult parseResult, RunCommandDefinition definition)
parent\dotnet\Commands\Run\CommonRunHelpers.cs (1)
86ParseResult parseResult,
parent\dotnet\Commands\Sdk\Check\SdkCheckCommand.cs (2)
26ParseResult parseResult, 83public static int Run(ParseResult parseResult)
parent\dotnet\Commands\Solution\List\SolutionListCommand.cs (1)
20public SolutionListCommand(ParseResult parseResult)
parent\dotnet\Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
18public SolutionMigrateCommand(ParseResult parseResult, IReporter reporter = null)
parent\dotnet\Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
19public SolutionRemoveCommand(ParseResult parseResult)
parent\dotnet\Commands\Solution\SolutionCommandParser.cs (1)
22command.AddCommand.SetAction((Func<ParseResult, int>)(_ => throw new CommandNotAvailableInAotException()));
parent\dotnet\Commands\Test\AotTestCommand.cs (4)
27internal static int Execute(ParseResult parseResult) 42private static bool HasUnsupportedRootOption(ParseResult parseResult) 49private static bool HasUnmatchedTokenBeforeDoubleDash(ParseResult parseResult) 66ParseResult parseResult,
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (5)
45public int Run(ParseResult parseResult, bool isHelp) 378ParseResult parseResult, 1184private static TestListFormat GetListTestsFormat(ParseResult parseResult, TestCommandDefinition.MicrosoftTestingPlatform definition) 1196ParseResult parseResult, 1489ParseResult parseResult,
parent\dotnet\Commands\Test\MTP\TestCommandOptions.cs (1)
17public static BuildOptions GetBuildOptions(ParseResult parseResult)
parent\dotnet\Commands\Test\MTP\TestModulesFilterHandler.cs (1)
22public TestModulesFilterHandler(string testModules, ParseResult parseResult)
parent\dotnet\Commands\Tool\List\ToolListLocalCommand.cs (1)
21ParseResult parseResult,
parent\dotnet\Commands\Tool\Run\ToolRunCommand.cs (1)
20public ToolRunCommand(ParseResult result, LocalToolsCommandResolver? localToolsCommandResolver = null, ToolManifestFinder? toolManifest = null)
parent\dotnet\Commands\Tool\Search\ToolSearchCommand.cs (2)
17private readonly ParseResult _parseResult; 25ParseResult result,
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
25ParseResult parseResult,
parent\dotnet\Extensions\ActivityExtensions.cs (1)
11public static void SetDisplayName(this Activity? activity, ParseResult parseResult)
parent\dotnet\Extensions\ParseResultExtensions.cs (17)
20public static string RootSubCommandResult(this ParseResult parseResult) => parseResult.RootCommandResult.Children? 24public static bool IsTopLevelDotnetCommand(this ParseResult parseResult) => 38public static bool RequiresManagedCommandResolution(this ParseResult parseResult) => 52public static Token? GetFileBasedAppEntryPointToken(this ParseResult parseResult) => 63internal static ParseResult? TryParseFileBasedAppAsRun(this ParseResult parseResult) 82private static string? GetSymbolResultValue(this ParseResult parseResult, SymbolResult symbolResult) => symbolResult switch 100public static void ShowHelp(this ParseResult parseResult) 112public static string[] GetArguments(this ParseResult parseResult) => 140public static bool CanBeInvoked(this ParseResult parseResult) => 144public static bool IsDotnetBuiltInCommand(this ParseResult parseResult) 152public static void ShowHelpOrErrorIfAppropriate(this ParseResult parseResult) 200public static int HandleMissingCommand(this ParseResult parseResult) 207public static IEnumerable<string>? GetRunCommandShorthandProjectValues(this ParseResult parseResult) => 210public static IEnumerable<string> GetRunCommandPropertyValues(this ParseResult parseResult) 223private static IEnumerable<string>? GetRunPropertyOptions(this ParseResult parseResult, bool shorthand) 252public static string GetCommandName(this ParseResult parseResult)
parent\dotnet\FirstRunExperience.cs (1)
54public static bool Setup(ParseResult parseResult)
parent\dotnet\Parser.cs (9)
109internal static bool TryParseGenericCommandHelp(string[] args, [NotNullWhen(true)] out ParseResult? parseResult) 372private static int InvokeAotFallback(ParseResult parseResult) => throw new CommandNotAvailableInAotException(); 378public override int Invoke(ParseResult parseResult) 405public override int Invoke(ParseResult parseResult) 473public static ParseResult Parse(string commandLineUnsplit) => RootCommand.Parse(commandLineUnsplit, ParserConfiguration); 474public static ParseResult Parse(string[] args) => RootCommand.Parse(args, ParserConfiguration); 475public static int Invoke(ParseResult parseResult) => parseResult.Invoke(InvocationConfiguration); 476public static Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken = default) => parseResult.InvokeAsync(InvocationConfiguration, cancellationToken); 485internal static int ExceptionHandler(Exception? exception, ParseResult parseResult)
parent\dotnet\ParserOptionActions.cs (4)
102public override int Invoke(ParseResult parseResult) 117public override int Invoke(ParseResult parseResult) 138public override int Invoke(ParseResult parseResult) 196public override int Invoke(ParseResult parseResult)
parent\dotnet\Telemetry\AllowListToSendFirstAppliedOptions.cs (1)
17public List<TelemetryEntryFormat> AllowList(ParseResult parseResult)
parent\dotnet\Telemetry\AllowListToSendFirstArgument.cs (1)
14public List<TelemetryEntryFormat> AllowList(ParseResult parseResult)
parent\dotnet\Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
15public List<TelemetryEntryFormat> AllowList(ParseResult parseResult)
parent\dotnet\Telemetry\IParseResultLogRule.cs (1)
13List<TelemetryEntryFormat> AllowList(ParseResult parseResult);
parent\dotnet\Telemetry\TelemetryFilter.cs (2)
18public IEnumerable<TelemetryEntryFormat> Filter(ParseResult parseResult) => 43private static IEnumerable<TelemetryEntryFormat> FilterImpl(ParseResult parseResult, string? globalJsonState)
parent\dotnet\Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
17public List<TelemetryEntryFormat> AllowList(ParseResult parseResult)
dotnet-format (7)
Commands\FormatAnalyzersCommand.cs (1)
31public override async Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\FormatCommandCommon.cs (3)
156public static FormatOptions ParseVerbosityOption(this ParseResult parseResult, FormatOptions formatOptions) 171public static FormatOptions ParseCommonOptions(this ParseResult parseResult, FormatOptions formatOptions, ILogger logger) 310public static FormatOptions ParseWorkspaceOptions(this ParseResult parseResult, FormatOptions formatOptions)
Commands\FormatStyleCommand.cs (1)
31public override async Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\FormatWhitespaceCommand.cs (1)
62public override async Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\RootFormatCommand.cs (1)
34public override async Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
dotnet-sourcelink (6)
dotnet-suggest (2)
SuggestionDispatcher.cs (2)
127private Task<int> Get(ParseResult parseResult, CancellationToken cancellationToken) 201ParseResult parseResult,
dotnet-watch (5)
CommandLine\CommandLineOptions.cs (4)
70var parseResult = definition.Parse(args, ParserConfiguration); 203ParseResult parseResult, 350private static Command GetSubcommand(ParseResult parseResult, out bool isExplicit) 373private static bool ReportErrors(ParseResult parseResult, ILogger logger)
Program.cs (1)
161var runParseResult = runCommandDefinition.Parse(options.CommandArgumentsForFileDiscovery, CommandLineOptions.ParserConfiguration);
ilasm (2)
Program.cs (2)
17private readonly ParseResult _result; 19public Program(IlasmRootCommand command, ParseResult result)
ilc (7)
ILCompilerRootCommand.cs (2)
193public ParseResult Result; 346public static void PrintExtendedHelp(ParseResult _)
parent\parent\Common\CommandLineHelpers.cs (5)
163public static RootCommand UseExtendedHelp(this RootCommand command, Action<ParseResult> customizer) 177public static void MakeReproPackage(string makeReproPath, string outputFilePath, string[] args, ParseResult res, IEnumerable<string> inputOptions, IEnumerable<string> outputOptions = null) 476private readonly Action<ParseResult> _customizer; 478public CustomizedHelpAction(HelpOption helpOption, Action<ParseResult> customizer) 484public override int Invoke(ParseResult parseResult)
Infrastructure.Tests (2)
TemplateManifest\TemplateManifestCommandTests.cs (2)
21var result = command.Parse(option is null ? arguments : 73var result = command.Parse(arguments);
Microsoft.DotNet.Cli.CommandLine (14)
ForwardedOptionExtensions.cs (10)
16private static readonly Dictionary<Symbol, Func<ParseResult, IEnumerable<string>>> s_forwardingFunctions = []; 28public Func<ParseResult, IEnumerable<string>>? ForwardingFunction => s_forwardingFunctions.GetValueOrDefault(option); 37private Func<ParseResult, IEnumerable<string>> GetForwardingFunction(Func<TValue, IEnumerable<string>> func) 39return (ParseResult parseResult) => 60private Func<ParseResult, IEnumerable<string>> GetForwardingFunction(Func<TValue, ParseResult, IEnumerable<string>> func) 62return (ParseResult parseResult) => 109public Option<TValue> SetForwardingFunction(Func<TValue?, ParseResult, IEnumerable<string>> func) 151Func<ParseResult, IEnumerable<string>> wrapped = pr => 201extension(ParseResult parseResult)
ResultNavigationExtensions.cs (4)
20public static T? SafelyGetValueForOption<T>(this ParseResult parseResult, Option<T> optionToGet) 49public static T? SafelyGetValueForOption<T>(this ParseResult parseResult, string name) 92public static bool HasOption(this ParseResult parseResult, Option option) => parseResult.GetResult(option) is OptionResult or && !or.Implicit; 98public static bool HasOption(this ParseResult parseResult, string name)
Microsoft.DotNet.Cli.Definitions (13)
Commands\New\NewUpdateCommandDefinition.cs (4)
35public abstract bool GetCheckOnlyValue(ParseResult result); 57public override bool GetCheckOnlyValue(ParseResult result) 66public override bool GetCheckOnlyValue(ParseResult result) 75public override bool GetCheckOnlyValue(ParseResult result)
Commands\Package\PackageListCommandDefinition.cs (1)
132public void EnforceOptionRules(ParseResult parseResult)
Commands\Tool\ToolLocationOptions.cs (3)
26public bool IsGlobalOrToolPath(ParseResult parseResult) 29public void EnsureNoConflictGlobalLocalToolPathOption(ParseResult parseResult, string message) 56public void EnsureToolManifestAndOnlyLocalFlagCombination(ParseResult parseResult, Option<string> toolManifestOption)
Common\TargetPlatformOptions.cs (2)
66public IEnumerable<string> ResolveArchOptionToRuntimeIdentifier(string? arg, ParseResult parseResult) 82public IEnumerable<string> ResolveOsOptionToRuntimeIdentifier(string? arg, ParseResult parseResult)
Help\HelpContext.cs (3)
19ParseResult? parseResult = null) 21private static readonly Lazy<ParseResult> EmptyParseResult = new(() => new RootCommand().Parse(Array.Empty<string>())); 38public ParseResult ParseResult { get; } = parseResult ?? EmptyParseResult.Value;
Microsoft.DotNet.Cli.Utils (5)
ITelemetryFilter.cs (1)
10IEnumerable<TelemetryEntryFormat> Filter(ParseResult parseResult);
MSBuildArgs.cs (1)
111var parseResult = fakeCommand.Parse([.. forwardedAndUserFacingArgs], _analysisParsingConfiguration);
TelemetryEventEntry.cs (3)
18public static void SendFiltered(ParseResult parseResult) => 53public IEnumerable<TelemetryEntryFormat> Filter(ParseResult parseResult) => s_emptyEntries; 80public record ParseResultWithGlobalJsonState(ParseResult ParseResult, string? GlobalJsonState);
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (1)
Program.cs (1)
40brotli.SetAction((ParseResult parseResult) =>
Microsoft.NET.Sdk.StaticWebAssets.Tool (1)
Program.cs (1)
40brotli.SetAction((ParseResult parseResults) =>
Microsoft.TemplateEngine.Cli (108)
Commands\alias\AliasAddCommand.cs (3)
11internal sealed class AliasAddCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewAliasCommandDefinitionBase definition) 18ParseResult parseResult, 21protected override AliasAddCommandArgs ParseContext(ParseResult parseResult) => new(parseResult);
Commands\alias\AliasAddCommandArgs.cs (1)
8internal sealed class AliasAddCommandArgs(ParseResult parseResult) : GlobalArgs(parseResult);
Commands\alias\AliasCommand.cs (3)
11internal sealed class AliasCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewAliasCommandDefinition definition) 18ParseResult parseResult, 21protected override AliasCommandArgs ParseContext(ParseResult parseResult) => new(parseResult);
Commands\alias\AliasCommandArgs.cs (1)
8internal sealed class AliasCommandArgs(ParseResult parseResult) : GlobalArgs(parseResult);
Commands\alias\AliasShowCommand.cs (3)
11internal sealed class AliasShowCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewAliasShowCommandDefinition definition) 18ParseResult parseResult, 21protected override AliasShowCommandArgs ParseContext(ParseResult parseResult) => new(parseResult);
Commands\alias\AliasShowCommandArgs.cs (1)
8internal sealed class AliasShowCommandArgs(ParseResult parseResult) : GlobalArgs(parseResult);
Commands\BaseCommand.cs (8)
23internal abstract class BaseCommand<TDefinition>(Func<ParseResult, ITemplateEngineHost> hostBuilder, TDefinition definition) 29protected static readonly Dictionary<string, Func<Func<ParseResult, ITemplateEngineHost>, Command, Command>> SubcommandFactories = new() 58protected IEngineEnvironmentSettings CreateEnvironmentSettings(GlobalArgs args, ParseResult parseResult) 75internal BaseCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, TDefinition definition) 135protected static void PrintDeprecationMessage<TDeprecatedCommand, TNewCommand>(ParseResult parseResult, Func<TNewCommand, Option>? additionalNewOptionSelector = null) 155protected abstract Task<NewCommandStatus> ExecuteAsync(TArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken); 157protected abstract TArgs ParseContext(ParseResult parseResult); 239public override async Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\BaseFilterableArgs.cs (2)
9internal abstract class BaseFilterableArgs<TDefinition>(ParseResult parseResult) : GlobalArgs(parseResult) 45private static IReadOnlyDictionary<FilterOptionDefinition, OptionResult> ParseFilters(ParseResult parseResult)
Commands\create\InstantiateCommand.cs (10)
20internal InstantiateCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewCreateCommandDefinition definition) 37ParseResult parseResult, 153ParseResult parseResult, 161protected override InstantiateCommandArgs ParseContext(ParseResult parseResult) => new(this, parseResult); 167ParseResult parseResult, 252ParseResult updatedParseResult = args.ParseResult.RootCommandResult.Command.Parse( 354if (ReparseForTemplate(args, environmentSettings, templatePackageManager, templateGroup, template) is (TemplateCommand command, ParseResult parseResult)) 383validateDefaultLanguage: true) is (TemplateCommand command, ParseResult parseResult)) 396private static (TemplateCommand? Command, ParseResult? ParseResult)? ReparseForTemplate( 415ParseResult parseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(), ParserFactory.ParserConfiguration);
Commands\create\InstantiateCommand.Help.cs (1)
366is (TemplateCommand command, ParseResult parseResult))
Commands\create\InstantiateCommand.NoMatchHandling.cs (2)
68is (TemplateCommand command, ParseResult parseResult)) 188ParseResult result = ParserFactory.CreateParser(reparseCommand).Parse(args.RemainingArguments ?? Array.Empty<string>());
Commands\create\InstantiateCommand.TabCompletion.cs (1)
67ParseResult parseResult = parser.Parse(context.CommandLineText, ParserFactory.ParserConfiguration);
Commands\create\InstantiateCommandArgs.cs (2)
27public InstantiateCommandArgs(InstantiateCommand command, ParseResult parseResult) 54private InstantiateCommandArgs(string? shortName, string[] remainingArgs, ParseResult parseResult)
Commands\create\InvalidTemplateOptionResult.cs (1)
84internal static InvalidTemplateOptionResult FromParseError(TemplateOption option, ParseResult parseResult, ParseError error)
Commands\create\TemplateCommand.cs (1)
162internal async Task<NewCommandStatus> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
Commands\create\TemplateCommandArgs.cs (2)
14public TemplateCommandArgs(TemplateCommand command, Command parentCommand, ParseResult parseResult) 81public ParseResult ParseResult { get; }
Commands\create\TemplateOptionResult.cs (1)
36internal static TemplateOptionResult? FromParseResult(TemplateOption option, ParseResult parseResult)
Commands\create\TemplateResult.cs (3)
15private readonly ParseResult _parseResult; 18private TemplateResult(TemplateCommand templateCommand, ParseResult parseResult) 40internal static TemplateResult FromParseResult(TemplateCommand templateCommand, ParseResult parseResult)
Commands\details\DetailsCommand.cs (3)
12internal sealed class DetailsCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewDetailsCommandDefinition definition) 19ParseResult parseResult, 36protected override DetailsCommandArgs ParseContext(ParseResult parseResult) => new(this, parseResult);
Commands\details\DetailsCommandArgs.cs (1)
10internal DetailsCommandArgs(DetailsCommand detailsCommand, ParseResult parseResult)
Commands\Example.cs (2)
12internal static Example<T> For<T>(ParseResult parseResult) where T : Command 75internal static Example<T> FromExistingTokens<T>(ParseResult parseResult) where T : Command
Commands\Extensions.cs (2)
15internal static string? GetValueForOptionOrNull(this ParseResult parseResult, Option option) 28internal static bool HasErrorFor(this ParseResult parseResult, Option option, [NotNullWhen(true)] out ParseError? error)
Commands\GlobalArgs.cs (4)
12public GlobalArgs(ParseResult parseResult) 30public ParseResult ParseResult { get; } 46protected static (bool, IReadOnlyList<string>?) ParseTabularOutputSettings(ITabularOutputCommand command, ParseResult parseResult) 54private static NewCommand GetNewCommandFromParseResult(ParseResult parseResult)
Commands\ICommandArgs.cs (2)
17/// Gets the <see cref="System.CommandLine.ParseResult"/> for the command to be executed. 19internal ParseResult ParseResult { get; }
Commands\install\BaseInstallCommand.cs (3)
11internal abstract class BaseInstallCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewInstallCommandDefinition definition) 18ParseResult parseResult, 25protected override InstallCommandArgs ParseContext(ParseResult parseResult)
Commands\install\InstallCommand.cs (2)
11internal sealed class InstallCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewInstallCommandDefinition definition) 18ParseResult parseResult,
Commands\install\InstallCommandArgs.cs (1)
10public InstallCommandArgs(BaseInstallCommand installCommand, ParseResult parseResult)
Commands\install\LegacyInstallCommand.cs (2)
11internal sealed class LegacyInstallCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewInstallCommandDefinition definition) 14protected override Task<NewCommandStatus> ExecuteAsync(InstallCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken)
Commands\list\BaseListCommand.cs (3)
16Func<ParseResult, ITemplateEngineHost> hostBuilder, 33ParseResult parseResult, 44protected override ListCommandArgs ParseContext(ParseResult parseResult)
Commands\list\LegacyListCommand.cs (2)
11internal class LegacyListCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewListCommandDefinition definition) 14protected override Task<NewCommandStatus> ExecuteAsync(ListCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken)
Commands\list\ListCommand.cs (2)
11internal sealed class ListCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewListCommandDefinition definition) 18ParseResult parseResult,
Commands\list\ListCommandArgs.cs (1)
11internal ListCommandArgs(BaseListCommand command, ParseResult parseResult)
Commands\NewCommand.cs (3)
13internal partial class NewCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewCommandDefinition definition) 59ParseResult parseResult, 65protected override NewCommandArgs ParseContext(ParseResult parseResult) => new(this, parseResult);
Commands\NewCommandArgs.cs (1)
21public NewCommandArgs(NewCommand command, ParseResult parseResult)
Commands\search\BaseSearchCommand.cs (3)
12internal abstract class BaseSearchCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewSearchCommandDefinition definition) 27ParseResult parseResult, 38protected override SearchCommandArgs ParseContext(ParseResult parseResult)
Commands\search\LegacySearchCommand.cs (2)
11internal sealed class LegacySearchCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewSearchCommandDefinition definition) 14protected override Task<NewCommandStatus> ExecuteAsync(SearchCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken)
Commands\search\SearchCommand.cs (2)
11internal sealed class SearchCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewSearchCommandDefinition definition) 18ParseResult parseResult,
Commands\search\SearchCommandArgs.cs (1)
11internal SearchCommandArgs(BaseSearchCommand command, ParseResult parseResult)
Commands\uninstall\BaseUninstallCommand.cs (3)
11internal abstract class BaseUninstallCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewUninstallCommandDefinition definition) 18ParseResult parseResult, 26protected override UninstallCommandArgs ParseContext(ParseResult parseResult)
Commands\uninstall\LegacyUninstallCommand.cs (2)
11internal sealed class LegacyUninstallCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewUninstallCommandDefinition definition) 14protected override Task<NewCommandStatus> ExecuteAsync(UninstallCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken)
Commands\uninstall\UninstallCommand.cs (2)
11internal sealed class UninstallCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewUninstallCommandDefinition definition) 18ParseResult parseResult,
Commands\uninstall\UninstallCommandArgs.cs (1)
12public UninstallCommandArgs(BaseUninstallCommand uninstallCommand, ParseResult parseResult)
Commands\update\BaseUpdateCommand.cs (3)
16internal abstract class BaseUpdateCommand<TDefinition>(Func<ParseResult, ITemplateEngineHost> hostBuilder, TDefinition definition) 26ParseResult context, 34protected override UpdateCommandArgs ParseContext(ParseResult parseResult) => new(parseResult);
Commands\update\LegacyUpdateApplyCommand.cs (2)
11internal sealed class LegacyUpdateApplyCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewUpdateApplyLegacyCommandDefinition definition) 14protected override Task<NewCommandStatus> ExecuteAsync(UpdateCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken)
Commands\update\LegacyUpdateCheckCommand.cs (2)
11internal sealed class LegacyUpdateCheckCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewUpdateCheckLegacyCommandDefinition definition) 14protected override Task<NewCommandStatus> ExecuteAsync(UpdateCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken)
Commands\update\UpdateCommand.cs (2)
11internal sealed class UpdateCommand(Func<ParseResult, ITemplateEngineHost> hostBuilder, NewUpdateCommandDefinition definition) 18ParseResult parseResult,
Commands\update\UpdateCommandArgs.cs (1)
10public UpdateCommandArgs(ParseResult parseResult)
NewCommandFactory.cs (1)
12public static Command Create(Func<ParseResult, ICliTemplateEngineHost> hostBuilder, NewCommandDefinition definition)
TemplatePackageDisplay.cs (1)
84ParseResult parseResult,
NuGet.CommandLine.XPlat (1)
Program.cs (1)
170ParseResult parseResult = rootCommand.Parse(args);
System.CommandLine (56)
Command.cs (11)
102/// <para>Use one of the <see cref="SetAction(Action{ParseResult})" /> overloads to construct a handler.</para> 110public void SetAction(Action<ParseResult> action) 128public void SetAction(Func<ParseResult, int> action) 141public void SetAction(Func<ParseResult, CancellationToken, Task> action) 159/// When possible, prefer using the <see cref="SetAction(Func{ParseResult, CancellationToken, Task})"/> overload 165public void SetAction(Func<ParseResult, Task> action) 183/// When possible, prefer using the <see cref="SetAction(Func{ParseResult, CancellationToken, Task{int}})"/> overload 189public void SetAction(Func<ParseResult, Task<int>> action) 206public void SetAction(Func<ParseResult, CancellationToken, Task<int>> action) 251public ParseResult Parse(IReadOnlyList<string> args, ParserConfiguration? configuration = null) 261public ParseResult Parse(string commandLine, ParserConfiguration? configuration = null)
Completions\CompletionAction.cs (2)
20public override int Invoke(ParseResult parseResult) 29var completionParseResult = parseResult.RootCommandResult.Command.Parse(commandLineToComplete, parseResult.Configuration);
Completions\CompletionContext.cs (5)
16internal CompletionContext(ParseResult parseResult) : this(parseResult, GetWordToComplete(parseResult)) 20internal CompletionContext(ParseResult parseResult, string wordToComplete) 34public ParseResult ParseResult { get; } 40public static CompletionContext Empty => _empty ??= new CompletionContext(ParseResult.Empty()); 51ParseResult parseResult,
Completions\TextCompletionContext.cs (2)
12ParseResult parseResult, 21ParseResult parseResult,
EnvironmentVariablesDirective.cs (2)
39public override int Invoke(ParseResult parseResult) 46private void SetEnvVars(ParseResult parseResult)
Help\HelpAction.cs (1)
56public override int Invoke(ParseResult parseResult)
Invocation\AnonymousAsynchronousCommandLineAction.cs (3)
11private readonly Func<ParseResult, CancellationToken, Task<int>> _asyncAction; 13internal AnonymousAsynchronousCommandLineAction(Func<ParseResult, CancellationToken, Task<int>> action) 17public override Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken = default) =>
Invocation\AnonymousSynchronousCommandLineAction.cs (3)
8private readonly Func<ParseResult, int> _syncAction; 10internal AnonymousSynchronousCommandLineAction(Func<ParseResult, int> action) 14public override int Invoke(ParseResult parseResult) =>
Invocation\AsynchronousCommandLineAction.cs (1)
18public abstract Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken = default);
Invocation\InvocationPipeline.cs (4)
11internal static async Task<int> InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken) 98internal static int Invoke(ParseResult parseResult) 139private static int DefaultExceptionHandler(Exception exception, ParseResult parseResult) 156private static int ReturnCodeForMissingAction(ParseResult parseResult)
Invocation\ParseErrorAction.cs (4)
30public override int Invoke(ParseResult parseResult) 47private static void WriteErrorDetails(ParseResult parseResult) 64private static void WriteHelp(ParseResult parseResult) 88private static void WriteTypoCorrectionSuggestions(ParseResult parseResult)
Invocation\SynchronousCommandLineAction.cs (1)
16public abstract int Invoke(ParseResult parseResult);
ParseResult.cs (2)
62internal static ParseResult Empty() => new RootCommand().Parse(Array.Empty<string>()); 368ParseResult parseResult,
Parsing\ArgumentResult.cs (1)
67/// Specifies the maximum number of tokens to consume for the argument. Remaining tokens are passed on and can be consumed by later arguments, or will otherwise be added to <see cref="ParseResult.UnmatchedTokens"/>.
Parsing\CommandLineParser.cs (5)
20/// <returns>A <see cref="ParseResult"/> providing details about the parse operation.</returns> 21public static ParseResult Parse(Command command, IReadOnlyList<string> args, ParserConfiguration? configuration = null) 31/// <returns>A <see cref="ParseResult"/> providing details about the parse operation.</returns> 32public static ParseResult Parse(Command command, string commandLine, ParserConfiguration? configuration = null) 138private static ParseResult Parse(
Parsing\ParseDiagramAction.cs (3)
21public override int Invoke(ParseResult parseResult) 32internal static StringBuilder Diagram(ParseResult parseResult) 57ParseResult parseResult)
Parsing\ParseOperation.cs (1)
57internal ParseResult Parse()
Parsing\SymbolResult.cs (4)
104/// <inheritdoc cref="ParseResult.GetValue{T}(Argument{T})"/> 116/// <inheritdoc cref="ParseResult.GetValue{T}(Option{T})"/> 128/// <inheritdoc cref="ParseResult.GetRequiredValue{T}(Argument{T})"/> 136/// <inheritdoc cref="ParseResult.GetRequiredValue{T}(Option{T})"/>
VersionOption.cs (1)
72public override int Invoke(ParseResult parseResult)