28 references to Project
aspire (10)
Agents\AgentClient.cs (3)
100return scope is AgentConfigurationScope.Project 107return scope is AgentConfigurationScope.Project 115if (scope is AgentConfigurationScope.Project)
Agents\McpConfigFileHelper.cs (1)
26(scope is AgentConfigurationScope.Project ||
Commands\AgentInitCommand.cs (4)
210PromptBinding.Create(parseResult, s_scopeOption, AgentConfigurationScope.Project), 393new[] { AgentConfigurationScope.Project, AgentConfigurationScope.Global }, 394value => value is AgentConfigurationScope.Project 875var root = scope is AgentConfigurationScope.Project ? workspaceRoot : ExecutionContext.HomeDirectory;
Commands\InitCommand.cs (1)
187PromptBinding.Create(parseResult, AgentInitCommand.s_scopeOption, AgentConfigurationScope.Project),
Commands\NewCommand.cs (1)
617PromptBinding.Create(parseResult, AgentInitCommand.s_scopeOption, AgentConfigurationScope.Project),
Aspire.Cli.Tests (18)
Commands\AgentInitClientSelectionTests.cs (16)
176var selectedScope = scope == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 278[InlineData("PrOjEcT", nameof(AgentConfigurationScope.Project))] 412Assert.Equal([AgentConfigurationScope.Project, AgentConfigurationScope.Global], choices.Cast<AgentConfigurationScope>()); 505var selectedScope = scope == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 507var root = selectedScope is AgentConfigurationScope.Project ? workspace.WorkspaceRoot : homeDirectory; 648var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 696var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 750var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 783jsoncPath, AgentClient.OpenCode, AgentConfigurationScope.Project, new TestEnvironment(), CancellationToken.None); 829var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 880var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1042var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1095var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1128var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1156var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1194var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global;
Commands\AgentInitCommandTests.cs (2)
737PromptBinding.CreateDefault(AgentConfigurationScope.Project), 772PromptBinding.CreateDefault(AgentConfigurationScope.Project),