37 references to new
Microsoft.DotNet.Cli.Definitions (24)
Commands\New\InstantiateCommandDefinition.cs (2)
17Arity = new ArgumentArity(0, 999) 41Arity = new ArgumentArity(0, 1)
Commands\New\NewCommandDefinition.cs (2)
92Arity = new ArgumentArity(0, 999), 180Arity = new ArgumentArity(0, 1),
Commands\New\NewDetailsCommandDefinition.cs (1)
22Arity = new ArgumentArity(1, 1)
Commands\New\NewInstallCommandDefinition.cs (1)
48Arity = new ArgumentArity(1, 99)
Commands\New\NewListCommandDefinition.cs (1)
73Arity = new ArgumentArity(0, 1)
Commands\New\NewSearchCommandDefinition.cs (1)
66Arity = new ArgumentArity(0, 1)
Commands\New\NewUninstallCommandDefinition.cs (1)
32Arity = new ArgumentArity(0, 99)
Commands\New\SharedOptionsFactory.cs (14)
17Arity = new ArgumentArity(0, 1), 28Arity = new ArgumentArity(1, 99), 41Arity = new ArgumentArity(0, 1), 52Arity = new ArgumentArity(1, 1), 63Arity = new ArgumentArity(1, 1), 75Arity = new ArgumentArity(1, 1), 86Arity = new ArgumentArity(1, 1), 97Arity = new ArgumentArity(1, 1), 108Arity = new ArgumentArity(1, 1), 117Arity = new ArgumentArity(1, 1) 137Arity = new ArgumentArity(1, 4), 165Arity = new ArgumentArity(1, 1) 173Arity = new ArgumentArity(0, 1) 181Arity = new ArgumentArity(0, 1)
Commands\Project\ProjectConvertCommandDefinition.cs (1)
20Arity = new ArgumentArity(1, 1)
Microsoft.TemplateEngine.Cli (8)
ChoiceTemplateParameter.cs (1)
78Arity = new ArgumentArity(DefaultIfOptionWithoutValue == null ? 1 : 0, AllowMultipleValues ? _choices.Count : 1),
CliTemplateParameter.cs (5)
213Arity = new ArgumentArity(0, 1) 218Arity = new ArgumentArity(string.IsNullOrWhiteSpace(DefaultIfOptionWithoutValue) ? 1 : 0, 1) 223Arity = new ArgumentArity(DefaultIfOptionWithoutValue == null ? 1 : 0, 1) 228Arity = new ArgumentArity(string.IsNullOrWhiteSpace(DefaultIfOptionWithoutValue) ? 1 : 0, 1) 233Arity = new ArgumentArity(string.IsNullOrWhiteSpace(DefaultIfOptionWithoutValue) ? 1 : 0, 1)
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
184Arity = new ArgumentArity(0, 999)
Commands\create\TemplateCommand.cs (1)
112Arity = new ArgumentArity(1, 1),
System.CommandLine (5)
ArgumentArity.cs (5)
118public static ArgumentArity Zero => new(0, 0); 123public static ArgumentArity ZeroOrOne => new(0, 1); 128public static ArgumentArity ExactlyOne => new(1, 1); 133public static ArgumentArity ZeroOrMore => new(0, MaximumArity); 138public static ArgumentArity OneOrMore => new(1, MaximumArity);