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