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