32 references to AgentInitCommand
aspire (27)
Commands\AgentCommand.cs (1)
18
AgentInitCommand
initCommand,
Commands\AgentInitCommand.cs (2)
42
private readonly ILogger<
AgentInitCommand
> _logger;
68
_logger = services.LoggerFactory.CreateLogger<
AgentInitCommand
>();
Commands\InitCommand.cs (8)
47
private readonly
AgentInitCommand
_agentInitCommand;
76
AgentInitCommand
agentInitCommand,
120
Options.Add(
AgentInitCommand
.s_scopeOption);
121
Options.Add(
AgentInitCommand
.s_skillsOption);
122
Options.Add(
AgentInitCommand
.s_removeSkillCopiesOption);
219
PromptBinding.Create(parseResult,
AgentInitCommand
.s_skillsOption, CommonAgentApplicators.AspireSkillName),
220
PromptBinding.Create(parseResult,
AgentInitCommand
.s_scopeOption, AgentConfigurationScope.Project),
221
PromptBinding.CreateBoolConfirm(parseResult,
AgentInitCommand
.s_removeSkillCopiesOption, defaultValue: false),
Commands\McpInitCommand.cs (7)
15
private readonly
AgentInitCommand
_agentInitCommand;
18
AgentInitCommand
agentInitCommand,
24
Options.Add(
AgentInitCommand
.s_workspaceRootOption);
25
Options.Add(
AgentInitCommand
.s_mcpOption);
26
Options.Add(
AgentInitCommand
.s_removeSkillCopiesOption);
28
Options.Add(
AgentInitCommand
.s_scopeOption);
29
Options.Add(
AgentInitCommand
.s_skillsOption);
Commands\NewCommand.cs (8)
38
private readonly
AgentInitCommand
_agentInitCommand;
91
AgentInitCommand
agentInitCommand,
119
Options.Add(
AgentInitCommand
.s_scopeOption);
120
Options.Add(
AgentInitCommand
.s_skillsOption);
121
Options.Add(
AgentInitCommand
.s_removeSkillCopiesOption);
866
PromptBinding.Create(parseResult,
AgentInitCommand
.s_skillsOption, CommonAgentApplicators.AspireSkillName),
867
PromptBinding.Create(parseResult,
AgentInitCommand
.s_scopeOption, AgentConfigurationScope.Project),
868
PromptBinding.CreateBoolConfirm(parseResult,
AgentInitCommand
.s_removeSkillCopiesOption, defaultValue: false),
Program.cs (1)
747
builder.Services.AddTransient<
AgentInitCommand
>();
Aspire.Cli.Tests (5)
Commands\AgentInitCommandTests.cs (4)
643
Assert.Equal(expected,
AgentInitCommand
.SimplifyDescription(input));
784
var
command = provider.GetRequiredService<
AgentInitCommand
>();
825
var result = await provider.GetRequiredService<
AgentInitCommand
>().PromptAndChainAsync(
Utils\CliTestHelper.cs (1)
344
services.AddTransient<
AgentInitCommand
>();