26 references to Interactive
aspire (8)
Configuration\ConfigSourceService.cs (7)
562
var size = await git.GetObjectSizeAsync(repositoryDirectory, version, GitCommandMode.
Interactive
, timeout.Token);
568
var json = await git.ReadBlobAsync(repositoryDirectory, version, GitCommandMode.
Interactive
, timeout.Token);
634
var mode = allowInteractive ? GitCommandMode.
Interactive
: GitCommandMode.Unattended;
649
resolvedCommit.Length == 64 ? "sha256" : "sha1", GitCommandMode.
Interactive
, cancellationToken);
654
allowInteractive ? GitCommandMode.
Interactive
: GitCommandMode.Unattended, cancellationToken);
655
var commit = await git.GetCommitAsync(repositoryDirectory, "FETCH_HEAD^{commit}", GitCommandMode.
Interactive
, cancellationToken);
656
var entry = await git.GetFileAsync(repositoryDirectory, commit, source.Path, GitCommandMode.
Interactive
, cancellationToken);
Git\GitCommandRunner.cs (1)
43
var interactive = mode == GitCommandMode.
Interactive
&& hostEnvironment.SupportsInteractiveInput;
Aspire.Cli.Tests (18)
Configuration\ConfigSourceServiceGitTests.cs (5)
314
var startInfo = client.CreateStartInfo(workspace.Path, ["fetch", "--depth", "1", "--", "https://example.com/configuration", "HEAD"], GitCommandMode.
Interactive
);
339
var startInfo = runner.CreateStartInfo(workspace.Path, ["ls-remote", "--", "repository", "HEAD"], GitCommandMode.
Interactive
);
358
var 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)]
117
await client.InitializeAsync(workspace.WorkspaceRoot, repository, objectFormat: null, GitCommandMode.
Interactive
, token);
119
Assert.Equal(TestGitCommandRunner.DefaultCommitSha, await client.GetCommitAsync(repository, "FETCH_HEAD^{commit}", GitCommandMode.
Interactive
, token));
126
Assert.Equal(GitCommandMode.
Interactive
, command.Mode);
137
Assert.Equal(GitCommandMode.
Interactive
, command.Mode);
155
var entry = await client.GetFileAsync(repository, objectId, path, GitCommandMode.
Interactive
, TestContext.Current.CancellationToken);
173
Assert.Null(await client.GetFileAsync(repository, TestGitCommandRunner.DefaultCommitSha, "file", GitCommandMode.
Interactive
, TestContext.Current.CancellationToken));
189
Assert.Equal(23, await client.GetObjectSizeAsync(repository, objectId, GitCommandMode.
Interactive
, TestContext.Current.CancellationToken));
190
Assert.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))]