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(
57 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)
63string.Join(",", SkillLocation.All.Select(l => l.Id)), 237var defaultLocationIds = string.Join(",", SkillLocation.All.Where(l => l.IsDefault).Select(l => l.Id)); 242SkillLocation.All, 244preSelected: SkillLocation.All.Where(l => l.IsDefault), 354foreach (var location in selectedLocations) 823IReadOnlyList<SkillLocation> SelectedLocations,
Commands\InitCommand.cs (3)
225private static IReadOnlyList<string> GetAspireifyCommands(IReadOnlyList<SkillLocation> selectedLocations) 229if (selectedLocations.Contains(SkillLocation.ClaudeCode)) 234if (selectedLocations.Contains(SkillLocation.OpenCode))
Aspire.Cli.Tests (39)
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)
496if (items.FirstOrDefault() is SkillLocation) 498return [SkillLocation.Standard, SkillLocation.ClaudeCode, SkillLocation.OpenCode]; 544if (items.FirstOrDefault() is SkillLocation) 546return [SkillLocation.Standard];