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