48 references to For
Microsoft.TemplateEngine.Cli (48)
Commands\BaseCommand.cs (4)
129
var example = Example.
For
<InstantiateCommand>(args.ParseResult).WithArguments(usedCommandAlias);
139
var newCommandExample = Example.
For
<TNewCommand>(parseResult);
147
Example.
For
<TDeprecatedCommand>(parseResult),
151
Reporter.Output.WriteCommand(Example.
For
<TNewCommand>(parseResult).WithHelpOption().ToString().Yellow());
Commands\create\InstantiateCommand.cs (6)
445
? Example.
For
<InstantiateCommand>(instantiateArgs.ParseResult).WithArguments(possibleMatch)
446
: Example.
For
<NewCommand>(instantiateArgs.ParseResult).WithArguments(possibleMatch);
472
Example example = Example.
For
<NewCommand>(instantiateArgs.ParseResult).WithSubcommand(possibleMatch);
489
.
For
<NewCommand>(instantiateArgs.ParseResult)
498
.
For
<NewCommand>(instantiateArgs.ParseResult)
510
.
For
<NewCommand>(instantiateArgs.ParseResult)
Commands\create\InstantiateCommand.Help.cs (2)
219
.
For
<NewCommand>(args.ParseResult)
254
.
For
<NewCommand>(args.ParseResult)
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
156
.
For
<NewCommand>(args.ParseResult)
TemplateInvoker.cs (4)
242
Reporter.Output.WriteCommand(Example.
For
<NewCommand>(templateArgs.ParseResult).WithOption(c => c.Definition.DebugRebuildCacheOption));
258
Reporter.Output.WriteCommand(Example.
For
<UninstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName));
261
Reporter.Output.WriteCommand(Example.
For
<InstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName));
272
.
For
<NewCommand>(templateArgs.ParseResult)
TemplateListCoordinator.cs (9)
79
.
For
<NewCommand>(args.ParseResult)
124
.
For
<NewCommand>(args.ParseResult)
132
.
For
<NewCommand>(args.ParseResult)
153
Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_Description, Example.
For
<NewCommand>(args.ParseResult));
157
Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_TemplatesHeader, Example.
For
<NewCommand>(args.ParseResult));
167
.
For
<NewCommand>(args.ParseResult)
175
.
For
<NewCommand>(args.ParseResult)
183
.
For
<NewCommand>(args.ParseResult)
189
.
For
<NewCommand>(args.ParseResult)
TemplatePackageCoordinator.cs (7)
151
.
For
<NewCommand>(args.ParseResult)
170
.
For
<NewCommand>(args.ParseResult)
642
.
For
<InstallCommand>(args.ParseResult)
742
.
For
<NewCommand>(commandArgs.ParseResult)
750
.
For
<NewCommand>(commandArgs.ParseResult)
760
.
For
<NewCommand>(commandArgs.ParseResult)
769
.
For
<NewCommand>(commandArgs.ParseResult)
TemplatePackageDisplay.cs (10)
57
.
For
<NewCommand>(args.ParseResult)
76
.
For
<NewCommand>(args.ParseResult)
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));
269
.
For
<NewCommand>(args.ParseResult)
305
.
For
<NewCommand>(args.ParseResult)
310
.
For
<NewCommand>(args.ParseResult)
317
.
For
<NewCommand>(args.ParseResult)
TemplateSearch\CliTemplateSearchCoordinator.cs (5)
97
.
For
<NewCommand>(commandArgs.ParseResult)
103
.
For
<NewCommand>(commandArgs.ParseResult)
261
.
For
<NewCommand>(commandArgs.ParseResult)
267
.
For
<NewCommand>(commandArgs.ParseResult)
273
.
For
<NewCommand>(commandArgs.ParseResult)