5 implementations of ArgumentName
System.CommandLine.StaticCompletions (5)
shells\BashShellProvider.cs (1)
14public string ArgumentName => "bash";
shells\FishShellProvider.cs (1)
10public string ArgumentName => "fish";
shells\NuShellShellProvider.cs (1)
10public string ArgumentName => "nushell";
shells\PowershellShellProvider.cs (1)
15public string ArgumentName => PowershellShellProvider.PowerShell;
shells\ZshShellProvider.cs (1)
11public string ArgumentName => "zsh";
8 references to ArgumentName
dotnet.Tests (4)
CompletionTests\DotnetCliSnapshotTests.cs (4)
17var provider = CompletionsCommand.DefaultShells.Single(x => x.ArgumentName == shellName); 24settings.UseDirectory(Path.Combine(Environment.CurrentDirectory, "snapshots", provider.ArgumentName)); 29settings.UseDirectory(Path.Combine("snapshots", provider.ArgumentName)); 34public static IEnumerable<object[]> ShellNames = CompletionsCommand.DefaultShells.Select<IShellProvider, object[]>(x => [x.ArgumentName]);
System.CommandLine.StaticCompletions (2)
CompletionsCommand.cs (2)
28public CompletionsCommand(IEnumerable<IShellProvider>? supportedShells = null, string commandName = "completions", string? commandDescription = null) : this((supportedShells ?? DefaultShells).ToDictionary(s => s.ArgumentName, StringComparer.OrdinalIgnoreCase), commandName, commandDescription ?? Strings.CompletionsCommand_Description) 101return shellMap.Values.Select(shellProvider => new CompletionItem(shellProvider.ArgumentName, documentation: shellProvider.HelpDescription));
System.CommandLine.StaticCompletions.Tests (2)
VerifyExtensions.cs (2)
20var runtimeSnapshotDir = new DirectoryInfo(Path.Combine(Environment.CurrentDirectory, "snapshots", provider.ArgumentName)); 32settings.UseDirectory(Path.Combine("snapshots", provider.ArgumentName));