4 instantiations of SkillLocation
aspire (4)
Agents\SkillLocation.cs (4)
18public static readonly SkillLocation Standard = new( 29public static readonly SkillLocation ClaudeCode = new( 40public static readonly SkillLocation GitHubSkills = new( 51public static readonly SkillLocation OpenCode = new(
59 references to SkillLocation
aspire (18)
Agents\Playwright\PlaywrightCliInstaller.cs (4)
310foreach (var location in SkillLocation.All) 360foreach (var location in SkillLocation.All)
Agents\SkillLocation.cs (5)
18public static readonly SkillLocation Standard = new( 29public static readonly SkillLocation ClaudeCode = new( 40public static readonly SkillLocation GitHubSkills = new( 51public static readonly SkillLocation OpenCode = new( 102public static IReadOnlyList<SkillLocation> All { get; } = [Standard, ClaudeCode, GitHubSkills, OpenCode];
Commands\AgentInitCommand.cs (6)
64string.Join(",", SkillLocation.All.Select(l => l.Id)), 222var defaultLocationIds = string.Join(",", SkillLocation.All.Where(l => l.IsDefault).Select(l => l.Id)); 227SkillLocation.All, 229preSelected: SkillLocation.All.Where(l => l.IsDefault), 316foreach (var location in selectedLocations) 781IReadOnlyList<SkillLocation> SelectedLocations,
Commands\InitCommand.cs (3)
232private static IReadOnlyList<string> GetAspireifyCommands(IReadOnlyList<SkillLocation> selectedLocations) 236if (selectedLocations.Contains(SkillLocation.ClaudeCode)) 241if (selectedLocations.Contains(SkillLocation.OpenCode))
Aspire.Cli.Tests (41)
Agents\CommonAgentApplicatorsTests.cs (19)
16Assert.Equal(4, SkillLocation.All.Count); 17Assert.Contains(SkillLocation.All, l => l == SkillLocation.Standard); 18Assert.Contains(SkillLocation.All, l => l == SkillLocation.ClaudeCode); 19Assert.Contains(SkillLocation.All, l => l == SkillLocation.GitHubSkills); 20Assert.Contains(SkillLocation.All, l => l == SkillLocation.OpenCode); 26Assert.True(SkillLocation.Standard.IsDefault); 27Assert.True(SkillLocation.Standard.IncludeUserLevel); 28Assert.Equal(Path.Combine(".agents", "skills"), SkillLocation.Standard.RelativeSkillDirectory); 34Assert.False(SkillLocation.ClaudeCode.IsDefault); 35Assert.False(SkillLocation.ClaudeCode.IncludeUserLevel); 36Assert.Equal(Path.Combine(".claude", "skills"), SkillLocation.ClaudeCode.RelativeSkillDirectory); 42Assert.True(SkillLocation.Standard.IsDefault); 43Assert.False(SkillLocation.ClaudeCode.IsDefault); 44Assert.False(SkillLocation.GitHubSkills.IsDefault); 45Assert.False(SkillLocation.OpenCode.IsDefault);
Commands\AgentInitCommandTests.cs (14)
32SkillLocation location => location == SkillLocation.Standard, 110SkillLocation location => location == SkillLocation.Standard, 187if (items.FirstOrDefault() is SkillLocation) 189return [SkillLocation.Standard]; 229if (items.FirstOrDefault() is SkillLocation) 231return [SkillLocation.Standard]; 293if (items.FirstOrDefault() is SkillLocation) 295return [SkillLocation.Standard]; 341if (items.FirstOrDefault() is SkillLocation) 343return [SkillLocation.Standard]; 431if (items.FirstOrDefault() is SkillLocation) 433return [SkillLocation.Standard];
Commands\InitCommandTests.cs (6)
674if (items.FirstOrDefault() is SkillLocation) 676return [SkillLocation.Standard, SkillLocation.ClaudeCode, SkillLocation.OpenCode]; 725if (items.FirstOrDefault() is SkillLocation) 727return [SkillLocation.Standard];
Commands\NewCommandTests.cs (2)
3234if (items.FirstOrDefault() is SkillLocation) 3236return [SkillLocation.Standard];