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