26 references to Captured
aspire (10)
Git\GitCommandRunner.cs (5)
37return await RunProcessAsync(startInfo, captureCancellationOutput: command is "fetch" or "ls-remote" && mode != GitCommandMode.Captured && startInfo.RedirectStandardOutput, 52RedirectStandardInput = mode == GitCommandMode.Captured, 61if (!interactive && mode != GitCommandMode.Captured) 75if (mode != GitCommandMode.Captured) 154|| (mode == GitCommandMode.Captured && stderr.Contains("could not read Password", StringComparison.OrdinalIgnoreCase));
Templating\TemplateEngineFactory.cs (5)
124token => git.ResolveReferenceAsync(repository, reference, executionContext.WorkingDirectory, GitCommandMode.Captured, token), cancellationToken)); 198commitSha.Length == 64 ? "sha256" : "sha1", GitCommandMode.Captured, token); 199await git.FetchAsync(location, repository, commitSha, GitCommandMode.Captured, token); 200await git.CheckoutAsync(location, GitCommandMode.Captured, token); 201var actualSha = await git.GetCommitAsync(location, "HEAD", GitCommandMode.Captured, token);
Aspire.Cli.Tests (16)
Git\GitClientTests.cs (6)
31var resolved = await client.ResolveReferenceAsync("-repository with spaces", reference, workspace.WorkspaceRoot, GitCommandMode.Captured, TestContext.Current.CancellationToken); 41Assert.Equal(GitCommandMode.Captured, command.Mode); 55await client.ResolveReferenceAsync("repository", "same", workspace.WorkspaceRoot, GitCommandMode.Captured, TestContext.Current.CancellationToken)); 59[InlineData(nameof(GitCommandMode.Captured), 40)] 88client.ResolveReferenceAsync("repository", "missing", workspace.WorkspaceRoot, GitCommandMode.Captured, TestContext.Current.CancellationToken)); 102var resolved = await client.ResolveReferenceAsync("repository", new string('A', length), workspace.WorkspaceRoot, GitCommandMode.Captured, TestContext.Current.CancellationToken);
Git\GitCommandRunnerTests.cs (9)
28["fetch", "--", "-repository with spaces", "HEAD"], GitCommandMode.Captured); 61GitCommandRunner.FilterEnvironment(environment, GitCommandMode.Captured); 141runner.RunProcessAsync(startInfo, captureCancellationOutput: false, GitCommandMode.Captured, TestContext.Current.CancellationToken)); 158[InlineData(nameof(GitCommandMode.Captured), nameof(GitFailure.AuthenticationFailed))] 179CreateRunner().RunProcessAsync(startInfo, captureCancellationOutput: false, GitCommandMode.Captured, TestContext.Current.CancellationToken)); 193CreateRunner().RunProcessAsync(startInfo, captureCancellationOutput: false, GitCommandMode.Captured, new CancellationToken(canceled: true))); 201var output = await CreateRunner().RunProcessAsync(startInfo, captureCancellationOutput: false, GitCommandMode.Captured, TestContext.Current.CancellationToken); 211var startInfo = runner.CreateStartInfo(workspace.Path, ["fetch"], GitCommandMode.Captured); 224var output = await runner.RunProcessAsync(startInfo, captureCancellationOutput: false, GitCommandMode.Captured, cancellation.Token);
Templating\TemplateEngineFactoryGitTests.cs (1)
48Assert.All(commands.Commands, command => Assert.Equal(GitCommandMode.Captured, command.Mode));