35 references to Unattended
aspire (7)
Configuration\ConfigSourceService.cs (2)
817
var mode = allowInteractive ? GitCommandMode.Interactive : GitCommandMode.
Unattended
;
837
allowInteractive ? GitCommandMode.Interactive : GitCommandMode.
Unattended
, cancellationToken);
Git\GitCommandRunner.cs (5)
56
mode == GitCommandMode.
Unattended
|| mode == GitCommandMode.Interactive && !hostEnvironment.SupportsInteractiveInput;
109
var query = CreateStartInfo(source.WorkingDirectory, arguments, GitCommandMode.
Unattended
);
133
var repository = (await RunProcessAsync(urlQuery, captureCancellationOutput: false, GitCommandMode.
Unattended
, cancellationToken)).TrimEnd('\r', '\n');
148
command = (await RunProcessAsync(configQuery, captureCancellationOutput: false, GitCommandMode.
Unattended
, cancellationToken)).TrimEnd('\0');
253
childPath = await RunProcessAsync(pathQuery, captureCancellationOutput: false, GitCommandMode.
Unattended
, cancellationToken);
Aspire.Cli.Tests (28)
Commands\NewCommandLocalTemplateTests.SourceList.cs (1)
252
Assert.Equal(includeInherited ? [json ? GitCommandMode.
Unattended
: GitCommandMode.Interactive] : [], git.FetchModes);
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (1)
130
var mode = json ? GitCommandMode.
Unattended
: GitCommandMode.Interactive;
Configuration\ConfigSourceServiceGitTests.cs (4)
231
startInfo, captureTimeoutOutput, GitCommandMode.
Unattended
, cancellation.Token);
294
var startInfo = client.CreateStartInfo(workspace.Path, ["fetch"], GitCommandMode.
Unattended
);
716
: [GitCommandMode.Interactive, GitCommandMode.
Unattended
, GitCommandMode.Interactive, GitCommandMode.
Unattended
];
Git\GitClientTests.cs (3)
61
[InlineData(nameof(GitCommandMode.
Unattended
), 64)]
118
await client.FetchAsync(repository, "repository with spaces", "refs/heads/main", GitCommandMode.
Unattended
, token);
132
Assert.Equal(GitCommandMode.
Unattended
, command.Mode);
Git\GitCommandRunnerTests.Authentication.cs (11)
17
[InlineData(nameof(GitCommandMode.
Unattended
), true, true)]
64
var mode = unattended ? GitCommandMode.
Unattended
: GitCommandMode.Captured;
112
var info = runner.CreateStartInfo(workspace.Path, ["ls-remote", "--", server.Repository], GitCommandMode.
Unattended
);
119
runner.RunProcessAsync(info, captureCancellationOutput: false, GitCommandMode.
Unattended
, cancellation.Token));
181
var info = runner.CreateStartInfo(workspace.Path, arguments, GitCommandMode.
Unattended
);
218
var info = runner.CreateStartInfo(workspace.Path, arguments, GitCommandMode.
Unattended
);
285
var info = runner.CreateStartInfo(directory.FullName, arguments, GitCommandMode.
Unattended
);
308
var info = runner.CreateStartInfo(workspace.Path, arguments, GitCommandMode.
Unattended
);
335
var info = runner.CreateStartInfo(workspace.Path, arguments, GitCommandMode.
Unattended
);
394
["-c", $"alias.aspire-test-ssh={selection}", "aspire-test-ssh"], GitCommandMode.
Unattended
);
402
GitCommandMode.
Unattended
, TestContext.Current.CancellationToken)).TrimEnd('\r', '\n');
Git\GitCommandRunnerTests.cs (7)
73
[InlineData(nameof(GitCommandMode.
Unattended
))]
97
[InlineData(nameof(GitCommandMode.
Unattended
), false)]
98
[InlineData(nameof(GitCommandMode.
Unattended
), true)]
166
[InlineData(nameof(GitCommandMode.
Unattended
), nameof(GitFailure.CommandFailed))]
324
var run = runner.RunProcessAsync(startInfo, captureCancellationOutput: true, GitCommandMode.
Unattended
, cancellation.Token);
364
[InlineData(nameof(GitCommandMode.
Unattended
), 0)]
365
[InlineData(nameof(GitCommandMode.
Unattended
), 128)]
TestServices\TestConfigSourceServices.cs (1)
127
if (state.Mode == GitCommandMode.
Unattended
&& !ReadConfigurationWhenUnattended)