32 references to AgentInitCommand
aspire (27)
Commands\AgentCommand.cs (1)
18AgentInitCommand initCommand,
Commands\AgentInitCommand.cs (2)
42private readonly ILogger<AgentInitCommand> _logger; 68_logger = services.LoggerFactory.CreateLogger<AgentInitCommand>();
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)
38private readonly AgentInitCommand _agentInitCommand; 91AgentInitCommand agentInitCommand, 119Options.Add(AgentInitCommand.s_scopeOption); 120Options.Add(AgentInitCommand.s_skillsOption); 121Options.Add(AgentInitCommand.s_removeSkillCopiesOption); 866PromptBinding.Create(parseResult, AgentInitCommand.s_skillsOption, CommonAgentApplicators.AspireSkillName), 867PromptBinding.Create(parseResult, AgentInitCommand.s_scopeOption, AgentConfigurationScope.Project), 868PromptBinding.CreateBoolConfirm(parseResult, AgentInitCommand.s_removeSkillCopiesOption, defaultValue: false),
Program.cs (1)
747builder.Services.AddTransient<AgentInitCommand>();
Aspire.Cli.Tests (5)
Commands\AgentInitCommandTests.cs (4)
643Assert.Equal(expected, AgentInitCommand.SimplifyDescription(input)); 784var command = provider.GetRequiredService<AgentInitCommand>(); 825var result = await provider.GetRequiredService<AgentInitCommand>().PromptAndChainAsync(
Utils\CliTestHelper.cs (1)
344services.AddTransient<AgentInitCommand>();