26 references to Interactive
aspire (8)
Configuration\ConfigSourceService.cs (7)
562var size = await git.GetObjectSizeAsync(repositoryDirectory, version, GitCommandMode.Interactive, timeout.Token); 568var json = await git.ReadBlobAsync(repositoryDirectory, version, GitCommandMode.Interactive, timeout.Token); 634var mode = allowInteractive ? GitCommandMode.Interactive : GitCommandMode.Unattended; 649resolvedCommit.Length == 64 ? "sha256" : "sha1", GitCommandMode.Interactive, cancellationToken); 654allowInteractive ? GitCommandMode.Interactive : GitCommandMode.Unattended, cancellationToken); 655var commit = await git.GetCommitAsync(repositoryDirectory, "FETCH_HEAD^{commit}", GitCommandMode.Interactive, cancellationToken); 656var entry = await git.GetFileAsync(repositoryDirectory, commit, source.Path, GitCommandMode.Interactive, cancellationToken);
Git\GitCommandRunner.cs (1)
43var interactive = mode == GitCommandMode.Interactive && hostEnvironment.SupportsInteractiveInput;
Aspire.Cli.Tests (18)
Configuration\ConfigSourceServiceGitTests.cs (5)
314var startInfo = client.CreateStartInfo(workspace.Path, ["fetch", "--depth", "1", "--", "https://example.com/configuration", "HEAD"], GitCommandMode.Interactive); 339var startInfo = runner.CreateStartInfo(workspace.Path, ["ls-remote", "--", "repository", "HEAD"], GitCommandMode.Interactive); 358var startInfo = client.CreateStartInfo(workspace.Path, [command], GitCommandMode.Interactive); 719: [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.cs (4)
68[InlineData(nameof(GitCommandMode.Interactive))] 91[InlineData(nameof(GitCommandMode.Interactive), false)] 92[InlineData(nameof(GitCommandMode.Interactive), true)] 159[InlineData(nameof(GitCommandMode.Interactive), nameof(GitFailure.CommandFailed))]