17 references to Validators
dotnet-format (3)
Commands\FormatWhitespaceCommand.cs (3)
23
command.
Validators
.Add(EnsureFolderNotSpecifiedWithNoRestore);
24
command.
Validators
.Add(EnsureFolderNotSpecifiedWhenLoggingBinlog);
25
command.
Validators
.Add(EnsureFolderNotSpecifiedWithFramework);
dotnet-sourcelink (1)
Program.cs (1)
147
root.
Validators
.Add(commandResult =>
dotnet-watch (1)
CommandLine\DotnetWatchCommandDefinition.cs (1)
100
Validators
.Add(v =>
Microsoft.DotNet.Cli.Definitions (7)
Commands\New\CommandDefinitionExtensions.cs (3)
14
definition.
Validators
.Add(commandResult =>
35
command.
Validators
.Add(symbolResult => symbolResult.ValidateOptionUsage(optionName));
43
command.
Validators
.Add(symbolResult => symbolResult.ValidateArgumentUsage(argumentName));
Commands\New\InstantiateCommandDefinition.cs (1)
32
Validators
.Add(symbolResult => symbolResult.ValidateOptionUsage(option.Name));
Commands\Workload\WorkloadCommandDefinition.cs (1)
70
Validators
.Add(commandResult =>
Commands\Workload\WorkloadSearchVersionsCommandDefinition.cs (2)
44
Validators
.Add(result =>
52
Validators
.Add(result =>
Microsoft.TemplateEngine.Cli (2)
Commands\BaseCommand.cs (2)
85
Validators
.AddRange(definition.
Validators
);
System.CommandLine (2)
Parsing\CommandResult.cs (2)
53
for (var i = 0; i < Command.
Validators
.Count; i++)
55
Command.
Validators
[i](this);
System.CommandLine.StaticCompletions (1)
CompletionsCommandDefinition.cs (1)
24
Validators
.Add(argumentResult =>