31 references to WithArguments
Microsoft.TemplateEngine.Cli (31)
Commands\BaseCommand.cs (1)
129var example = Example.For<InstantiateCommand>(args.ParseResult).WithArguments(usedCommandAlias);
Commands\create\InstantiateCommand.cs (4)
445? Example.For<InstantiateCommand>(instantiateArgs.ParseResult).WithArguments(possibleMatch) 446: Example.For<NewCommand>(instantiateArgs.ParseResult).WithArguments(possibleMatch); 491.WithArguments(instantiateArgs.ShortName)); 512.WithArguments(instantiateArgs.ShortName));
Commands\create\InstantiateCommand.Help.cs (2)
220.WithArguments(templateGroup.ShortNames[0]) 255.WithArguments(templateGroup.ShortNames[0])
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
157.WithArguments(templateGroup.ShortNames[0]);
TemplateInvoker.cs (3)
258Reporter.Output.WriteCommand(Example.For<UninstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName)); 261Reporter.Output.WriteCommand(Example.For<InstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName)); 273.WithArguments(templateArgs.Template.ShortNameList[0])
TemplateListCoordinator.cs (4)
134.WithArguments(args.ListNameCriteria)); 168.WithArguments("console")); 176.WithArguments("console") 191.WithArguments("web"));
TemplatePackageCoordinator.cs (4)
153.WithArguments($"{versionCheckResult.TemplatePackage?.Identifier}@{versionCheckResult.LatestVersion}")); 172.WithArguments(packageId)); 643.WithArguments(installRequests.Select(ir => ir.DisplayName)) 752.WithArguments(managedPackages.First().Identifier));
TemplatePackageDisplay.cs (9)
59.WithArguments($"{versionCheckResult.TemplatePackage?.Identifier}@{versionCheckResult.LatestVersion}")); 78.WithArguments(packageId)); 161_reporterError.WriteCommand(Example.For<InstallCommand>(parseResult).WithArguments(packageToInstall).WithOption(c => c.Definition.ForceOption)); 190_reporterError.WriteCommand(Example.For<InstallCommand>(parseResult).WithArguments(packageToInstall).WithOption(c => c.Definition.ForceOption)); 202_reporterError.WriteCommand(Example.For<UninstallCommand>(parseResult).WithArguments(packageToInstall)); 203_reporterError.WriteCommand(Example.For<InstallCommand>(parseResult).WithArguments(packageToInstall).WithOption(c => c.Definition.ForceOption)); 271.WithArguments(managedSource.Identifier), 307.WithArguments($"<package>@<version>")); 312.WithArguments($"{displayableResults.First().Identifier}@{displayableResults.First().LatestVersion}"));
TemplateSearch\CliTemplateSearchCoordinator.cs (3)
105.WithArguments(packageIdToShow)); 263.WithArguments("web")); 275.WithArguments("web")