34 references to Interactive
aspire (8)
Configuration\ConfigSourceService.cs (6)
746var json = await git.ReadBlobAsync(repositoryDirectory, version, GitCommandMode.Interactive, timeout.Token); 817var mode = allowInteractive ? GitCommandMode.Interactive : GitCommandMode.Unattended; 832resolvedCommit.Length == 64 ? "sha256" : "sha1", GitCommandMode.Interactive, cancellationToken); 837allowInteractive ? GitCommandMode.Interactive : GitCommandMode.Unattended, cancellationToken); 838var commit = await client.GetCommitAsync(repositoryDirectory, "FETCH_HEAD^{commit}", GitCommandMode.Interactive, cancellationToken); 839var entry = await client.GetFileAsync(repositoryDirectory, commit, source.Path, GitCommandMode.Interactive, cancellationToken);
Git\GitCommandRunner.cs (2)
56mode == GitCommandMode.Unattended || mode == GitCommandMode.Interactive && !hostEnvironment.SupportsInteractiveInput; 60var interactive = mode == GitCommandMode.Interactive && hostEnvironment.SupportsInteractiveInput;
Aspire.Cli.Tests (26)
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 (5)
319var startInfo = client.CreateStartInfo(workspace.Path, ["fetch", "--depth", "1", "--", "https://example.com/configuration", "HEAD"], GitCommandMode.Interactive); 344var startInfo = runner.CreateStartInfo(workspace.Path, ["ls-remote", "--", "repository", "HEAD"], GitCommandMode.Interactive); 363var startInfo = client.CreateStartInfo(workspace.Path, [command], GitCommandMode.Interactive); 716: [GitCommandMode.Interactive, GitCommandMode.Unattended, GitCommandMode.Interactive, GitCommandMode.Unattended];
Git\GitClientTests.cs (9)
60[InlineData(nameof(GitCommandMode.Interactive), 64)] 117await client.InitializeAsync(workspace.WorkspaceRoot, repository, objectFormat: null, GitCommandMode.Interactive, token); 119Assert.Equal(TestGitCommandRunner.DefaultCommitSha, await client.GetCommitAsync(repository, "FETCH_HEAD^{commit}", GitCommandMode.Interactive, token)); 126Assert.Equal(GitCommandMode.Interactive, command.Mode); 137Assert.Equal(GitCommandMode.Interactive, command.Mode); 155var entry = await client.GetFileAsync(repository, objectId, path, GitCommandMode.Interactive, TestContext.Current.CancellationToken); 173Assert.Null(await client.GetFileAsync(repository, TestGitCommandRunner.DefaultCommitSha, "file", GitCommandMode.Interactive, TestContext.Current.CancellationToken)); 189Assert.Equal(23, await client.GetObjectSizeAsync(repository, objectId, GitCommandMode.Interactive, TestContext.Current.CancellationToken)); 190Assert.Equal(content, await client.ReadBlobAsync(repository, objectId, GitCommandMode.Interactive, TestContext.Current.CancellationToken));
Git\GitCommandRunnerTests.Authentication.cs (2)
18[InlineData(nameof(GitCommandMode.Interactive), false, true)] 19[InlineData(nameof(GitCommandMode.Interactive), true, false)]
Git\GitCommandRunnerTests.cs (8)
72[InlineData(nameof(GitCommandMode.Interactive))] 95[InlineData(nameof(GitCommandMode.Interactive), false)] 96[InlineData(nameof(GitCommandMode.Interactive), true)] 165[InlineData(nameof(GitCommandMode.Interactive), nameof(GitFailure.CommandFailed))] 282var startInfo = runner.CreateStartInfo(Environment.CurrentDirectory, [command], GitCommandMode.Interactive); 294GitCommandMode.Interactive, TestContext.Current.CancellationToken); 362[InlineData(nameof(GitCommandMode.Interactive), 0)] 363[InlineData(nameof(GitCommandMode.Interactive), 128)]