Forge
csharpdeeb25a2
1using CascadeIDE.Contracts;
2
3namespace CascadeIDE.Cockpit.ComputingUnits.IdeHealth;
4
5/// <summary>
6/// CCU «git-сегмент» (ADR 0097): из двух git-строк собирает payload для IDE Health.
7/// </summary>
8[ComputingUnit]
9public sealed class IdeHealthGitSegmentUnit : ICockpitComputeUnit
10{
11 /// <summary>Единственный экземпляр юнита (без состояния).</summary>
12 public static IdeHealthGitSegmentUnit Default { get; } = new();
13
14 private IdeHealthGitSegmentUnit()
15 {
16 }
17
18 public IdeHealthSegmentInput Compose(string gitLine, string gitCockpitShort) =>
19 IdeHealthFormattingUnit.Default.GitSegment(gitLine, gitCockpitShort);
20}
21
View only · write via MCP/CIDE