2 implementations of IGitCommandRunner
aspire (1)
Git\GitCommandRunner.cs (1)
20internal sealed class GitCommandRunner(ICliHostEnvironment hostEnvironment, IInteractionService interaction, ConsoleEnvironment consoleEnvironment, ILogger<GitCommandRunner> logger) : IGitCommandRunner
Aspire.Cli.Tests (1)
TestServices\TestGitCommandRunner.cs (1)
9internal sealed class TestGitCommandRunner : IGitCommandRunner
49 references to IGitCommandRunner
aspire (4)
Git\GitClient.cs (1)
8internal sealed class GitClient(IGitCommandRunner commands) : IGitClient
Git\GitCommandRunner.cs (2)
16IGitCommandRunner WithStandardErrorHandler(Action<string> standardErrorHandler); 27public IGitCommandRunner WithStandardErrorHandler(Action<string> standardErrorHandler) =>
Program.cs (1)
579builder.Services.AddSingleton<IGitCommandRunner, GitCommandRunner>();
Aspire.Cli.Tests (45)
Commands\ConfigSourceCommandTests.cs (2)
56options.GitClientFactory = services => new GitClient(services.GetRequiredService<IGitCommandRunner>()); 112options.GitClientFactory = services => new GitClient(services.GetRequiredService<IGitCommandRunner>());
Commands\NewCommandLocalTemplateTests.ConfiguredGitSourceObjects.cs (7)
54services.AddSingleton<IGitCommandRunner>(git); 101services.AddSingleton<IGitCommandRunner>(git); 138services.AddSingleton<IGitCommandRunner>(git); 184services.AddSingleton<IGitCommandRunner>(git); 230services.AddSingleton<IGitCommandRunner>(git); 281services.AddSingleton<IGitCommandRunner>(git); 357services.AddSingleton<IGitCommandRunner>(git);
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (13)
56services.AddSingleton<IGitCommandRunner>(git); 109services.AddSingleton<IGitCommandRunner>(git); 141services.AddSingleton<IGitCommandRunner>(git); 174services.AddSingleton<IGitCommandRunner>(git); 217services.AddSingleton<IGitCommandRunner>(git); 261services.AddSingleton<IGitCommandRunner>(git); 330services.AddSingleton<IGitCommandRunner>(git); 398services.AddSingleton<IGitCommandRunner>(git); 443services.AddSingleton<IGitCommandRunner>(git); 483services.AddSingleton<IGitCommandRunner>(git); 521services.AddSingleton<IGitCommandRunner>(git); 561services.AddSingleton<IGitCommandRunner>(git); 625services.AddSingleton<IGitCommandRunner>(git);
Commands\NewCommandLocalTemplateTests.ConfiguredSources.cs (2)
285services.AddSingleton<IGitCommandRunner>(git); 581services.AddSingleton<IGitCommandRunner>(git);
Commands\NewCommandLocalTemplateTests.cs (15)
998services.AddSingleton<IGitCommandRunner>(gitCommands); 1367services.AddSingleton<IGitCommandRunner>(gitCommands); 1468services.AddSingleton<IGitCommandRunner>(gitCommands); 1501services.AddSingleton<IGitCommandRunner>(gitCommands); 1535services.AddSingleton<IGitCommandRunner>(gitCommands); 1576services.AddSingleton<IGitCommandRunner>(gitCommands); 1608services.AddSingleton<IGitCommandRunner>(gitCommands); 1640services.AddSingleton<IGitCommandRunner>(gitCommands); 1782services.AddSingleton<IGitCommandRunner>(gitCommands); 1830firstServices.AddSingleton<IGitCommandRunner>(gitCommands); 1833secondServices.AddSingleton<IGitCommandRunner>(gitCommands); 1872services.AddSingleton<IGitCommandRunner>(gitCommands); 1901services.AddSingleton<IGitCommandRunner>(gitCommands); 1921services.AddSingleton<IGitCommandRunner>(gitCommands); 1973services.AddSingleton<IGitCommandRunner>(gitCommands);
Commands\NewCommandLocalTemplateTests.SourceList.cs (1)
45services.AddSingleton<IGitCommandRunner>(git);
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (2)
249_ = provider.GetRequiredService<IGitCommandRunner>(); 291services.AddSingleton<IGitCommandRunner>(provider =>
Templating\TemplateEngineFactoryGitTests.cs (1)
253services.AddSingleton<IGitCommandRunner>(commands);
TestServices\TestGitCommandRunner.cs (1)
11public IGitCommandRunner WithStandardErrorHandler(Action<string> standardErrorHandler) => this;
Utils\CliTestHelper.cs (1)
194services.AddSingleton<IGitCommandRunner, GitCommandRunner>();