1 type derived from Example
Microsoft.TemplateEngine.Cli (1)
Commands\Example.cs (1)
90
internal sealed class Example<T>(T currentCommand, ImmutableArray<string> commandParts) :
Example
56 references to Example
Microsoft.TemplateEngine.Cli (56)
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 (8)
444
Example
example = useInstantiateCommand
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);
488
Example
497
Example
509
Example
Commands\create\InstantiateCommand.Help.cs (2)
218
Example
253
writer.WriteLine(
Example
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
155
var example =
Example
Commands\create\TemplateCommand.cs (1)
258
reporter.WriteCommand(
Example
.FromExistingTokens<TemplateCommand>(templateArgs.ParseResult).WithOption(c => c.ForceOption));
Commands\Example.cs (4)
82
public static implicit operator string(
Example
e) => e.ToString()!;
84
public
Example
WithHelpOption()
87
protected abstract
Example
WithHelpOptionImpl();
113
protected override
Example
WithHelpOptionImpl()
TemplateInvoker.cs (5)
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));
271
Example
294
Reporter.Error.WriteCommand(
Example
.FromExistingTokens<TemplateCommand>(templateArgs.ParseResult).WithOption(c => c.ForceOption));
TemplateListCoordinator.cs (9)
78
Example
123
Example
131
Example
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));
166
Example
174
Example
182
Example
188
Example
TemplatePackageCoordinator.cs (7)
150
Example
169
Example
641
Example
741
Example
749
Example
759
Example
768
Example
TemplatePackageDisplay.cs (10)
56
Example
75
Example
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));
268
Example
304
Example
309
Example
316
Example
TemplateSearch\CliTemplateSearchCoordinator.cs (5)
96
Example
102
Example
260
Example
266
Example
272
Example