| 1 | namespace AgentForge.Plugin.Ci.Ir; |
| 2 | |
| 3 | public static class ForgeCiTaskCatalog |
| 4 | { |
| 5 | public sealed record ForgeCiTaskDescriptor(string Id, string DisplayName, string Description); |
| 6 | |
| 7 | private static readonly ForgeCiTaskDescriptor[] Tasks = |
| 8 | [ |
| 9 | new("dotnet.restore", ".NET restore", "dotnet restore"), |
| 10 | new("dotnet.build", ".NET build", "dotnet build"), |
| 11 | new("dotnet.test", ".NET test", "dotnet test"), |
| 12 | new("script", "Shell script", "Run arbitrary shell script"), |
| 13 | ]; |
| 14 | |
| 15 | public static IReadOnlyList<ForgeCiTaskDescriptor> All => Tasks; |
| 16 | |
| 17 | public static bool IsKnown(string taskId) => |
| 18 | Tasks.Any(t => string.Equals(t.Id, taskId, StringComparison.Ordinal)); |
| 19 | } |
| 20 | |
View only · write via MCP/CIDE