30 references to AgentInitCommand
aspire (25)
Commands\AgentCommand.cs (1)
18AgentInitCommand initCommand,
Commands\InitCommand.cs (8)
47private readonly AgentInitCommand _agentInitCommand; 76AgentInitCommand agentInitCommand, 120Options.Add(AgentInitCommand.s_scopeOption); 121Options.Add(AgentInitCommand.s_skillsOption); 122Options.Add(AgentInitCommand.s_removeSkillCopiesOption); 219PromptBinding.Create(parseResult, AgentInitCommand.s_skillsOption, CommonAgentApplicators.AspireSkillName), 220PromptBinding.Create(parseResult, AgentInitCommand.s_scopeOption, AgentConfigurationScope.Project), 221PromptBinding.CreateBoolConfirm(parseResult, AgentInitCommand.s_removeSkillCopiesOption, defaultValue: false),
Commands\McpInitCommand.cs (7)
15private readonly AgentInitCommand _agentInitCommand; 18AgentInitCommand agentInitCommand, 24Options.Add(AgentInitCommand.s_workspaceRootOption); 25Options.Add(AgentInitCommand.s_mcpOption); 26Options.Add(AgentInitCommand.s_removeSkillCopiesOption); 28Options.Add(AgentInitCommand.s_scopeOption); 29Options.Add(AgentInitCommand.s_skillsOption);
Commands\NewCommand.cs (8)
37private readonly AgentInitCommand _agentInitCommand; 88AgentInitCommand agentInitCommand, 113Options.Add(AgentInitCommand.s_scopeOption); 114Options.Add(AgentInitCommand.s_skillsOption); 115Options.Add(AgentInitCommand.s_removeSkillCopiesOption); 820PromptBinding.Create(parseResult, AgentInitCommand.s_skillsOption, CommonAgentApplicators.AspireSkillName), 821PromptBinding.Create(parseResult, AgentInitCommand.s_scopeOption, AgentConfigurationScope.Project), 822PromptBinding.CreateBoolConfirm(parseResult, AgentInitCommand.s_removeSkillCopiesOption, defaultValue: false),
Program.cs (1)
742builder.Services.AddTransient<AgentInitCommand>();
Aspire.Cli.Tests (5)
Commands\AgentInitCommandTests.cs (4)
344Assert.Equal(expected, AgentInitCommand.SimplifyDescription(input)); 485var command = provider.GetRequiredService<AgentInitCommand>(); 526var result = await provider.GetRequiredService<AgentInitCommand>().PromptAndChainAsync(
Utils\CliTestHelper.cs (1)
342services.AddTransient<AgentInitCommand>();