13 references to CompletionScripts
aspire (3)
Commands\CompletionsCommand.cs (3)
34_shellArgument.AcceptOnlyFromAmong(CompletionScripts.SupportedShells); 40var shell = parseResult.GetValue(_shellArgument) ?? CompletionScripts.DetectShell(_environment); 48parseResult.InvocationConfiguration.Output.Write(CompletionScripts.Generate(shell));
Aspire.Cli.Tests (10)
Commands\CompletionsCommandTests.cs (2)
52Assert.Equal(expected, CompletionScripts.DetectShell(environment)); 58Assert.Equal("pwsh", CompletionScripts.DetectShell(TestEnvironment.CreateWindows()));
Commands\CompletionScriptTests.cs (8)
25await File.WriteAllTextAsync(completionPath, CompletionScripts.Generate("pwsh")); 67await File.WriteAllTextAsync(completionPath, CompletionScripts.Generate("pwsh")); 99await File.WriteAllTextAsync(completionPath, CompletionScripts.Generate("bash")); 154await File.WriteAllTextAsync(completionPath, CompletionScripts.Generate("bash")); 190await File.WriteAllTextAsync(completionPath, CompletionScripts.Generate("bash")); 222await File.WriteAllTextAsync(completionPath, CompletionScripts.Generate("fish")); 246await File.WriteAllTextAsync(completionPath, CompletionScripts.Generate("zsh")); 272await File.WriteAllTextAsync(completionPath, CompletionScripts.Generate("zsh"));