protected virtual void WriteSummaryTable(NukeBuild build) { var firstColumn = Math.Max(build.ExecutionPlan.Max(x => x.Name.Length) + 4, val2: 19); var secondColumn = 10; var thirdColumn = 10; var allColumns = firstColumn + secondColumn + thirdColumn; var totalDuration = build.ExecutionPlan.Aggregate(TimeSpan.Zero, (t, x) => t.Add(x.Duration)); string CreateLine(string target, string executionStatus, string duration, string information = null) => target.PadRight(firstColumn, paddingChar: ' ') + executionStatus.PadRight(secondColumn, paddingChar: ' ') + duration.PadLeft(thirdColumn, paddingChar: ' ') + (information != null ? $" // {information}" : string.Empty);
internal virtual void WriteSummary(NukeBuild build) { WriteSevereLogEvents(Logging.InMemorySink.Instance.LogEvents); WriteSummaryTable(build); if (build.IsSuccessful) { WriteSuccessfulBuild(build); } else { WriteFailedBuild(); } }
public override object GetValue(MemberInfo member, NukeBuild build) { return(ParameterService.Instance.GetParameter <object>(member)); }