30 references to AgentInitCommand
aspire (25)
Commands\AgentCommand.cs (1)
18
AgentInitCommand
initCommand,
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)
37
private readonly
AgentInitCommand
_agentInitCommand;
88
AgentInitCommand
agentInitCommand,
113
Options.Add(
AgentInitCommand
.s_scopeOption);
114
Options.Add(
AgentInitCommand
.s_skillsOption);
115
Options.Add(
AgentInitCommand
.s_removeSkillCopiesOption);
820
PromptBinding.Create(parseResult,
AgentInitCommand
.s_skillsOption, CommonAgentApplicators.AspireSkillName),
821
PromptBinding.Create(parseResult,
AgentInitCommand
.s_scopeOption, AgentConfigurationScope.Project),
822
PromptBinding.CreateBoolConfirm(parseResult,
AgentInitCommand
.s_removeSkillCopiesOption, defaultValue: false),
Program.cs (1)
742
builder.Services.AddTransient<
AgentInitCommand
>();
Aspire.Cli.Tests (5)
Commands\AgentInitCommandTests.cs (4)
344
Assert.Equal(expected,
AgentInitCommand
.SimplifyDescription(input));
485
var
command = provider.GetRequiredService<
AgentInitCommand
>();
526
var result = await provider.GetRequiredService<
AgentInitCommand
>().PromptAndChainAsync(
Utils\CliTestHelper.cs (1)
342
services.AddTransient<
AgentInitCommand
>();