1 type derived from Example
Microsoft.TemplateEngine.Cli (1)
Commands\Example.cs (1)
90internal sealed class Example<T>(T currentCommand, ImmutableArray<string> commandParts) : Example
56 references to Example
Microsoft.TemplateEngine.Cli (56)
Commands\BaseCommand.cs (4)
129var example = Example.For<InstantiateCommand>(args.ParseResult).WithArguments(usedCommandAlias); 139var newCommandExample = Example.For<TNewCommand>(parseResult); 147Example.For<TDeprecatedCommand>(parseResult), 151Reporter.Output.WriteCommand(Example.For<TNewCommand>(parseResult).WithHelpOption().ToString().Yellow());
Commands\create\InstantiateCommand.cs (8)
444Example example = useInstantiateCommand 445? Example.For<InstantiateCommand>(instantiateArgs.ParseResult).WithArguments(possibleMatch) 446: Example.For<NewCommand>(instantiateArgs.ParseResult).WithArguments(possibleMatch); 472Example example = Example.For<NewCommand>(instantiateArgs.ParseResult).WithSubcommand(possibleMatch); 488Example 497Example 509Example
Commands\create\InstantiateCommand.Help.cs (2)
218Example 253writer.WriteLine(Example
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
155var example = Example
Commands\create\TemplateCommand.cs (1)
258reporter.WriteCommand(Example.FromExistingTokens<TemplateCommand>(templateArgs.ParseResult).WithOption(c => c.ForceOption));
Commands\Example.cs (4)
82public static implicit operator string(Example e) => e.ToString()!; 84public Example WithHelpOption() 87protected abstract Example WithHelpOptionImpl(); 113protected override Example WithHelpOptionImpl()
TemplateInvoker.cs (5)
242Reporter.Output.WriteCommand(Example.For<NewCommand>(templateArgs.ParseResult).WithOption(c => c.Definition.DebugRebuildCacheOption)); 258Reporter.Output.WriteCommand(Example.For<UninstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName)); 261Reporter.Output.WriteCommand(Example.For<InstallCommand>(templateArgs.ParseResult).WithArguments(templatePackage.DisplayName)); 271Example 294Reporter.Error.WriteCommand(Example.FromExistingTokens<TemplateCommand>(templateArgs.ParseResult).WithOption(c => c.ForceOption));
TemplateListCoordinator.cs (9)
78Example 123Example 131Example 153Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_Description, Example.For<NewCommand>(args.ParseResult)); 157Reporter.Output.WriteLine(LocalizableStrings.TemplateInformationCoordinator_DotnetNew_TemplatesHeader, Example.For<NewCommand>(args.ParseResult)); 166Example 174Example 182Example 188Example
TemplatePackageCoordinator.cs (7)
150Example 169Example 641Example 741Example 749Example 759Example 768Example
TemplatePackageDisplay.cs (10)
56Example 75Example 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)); 268Example 304Example 309Example 316Example
TemplateSearch\CliTemplateSearchCoordinator.cs (5)
96Example 102Example 260Example 266Example 272Example