18 references to FormattedCell
NuGet.CommandLine.XPlat (18)
Utility\FormattedCell.cs (1)
16
public FormattedCell() :
this
(string.Empty) { }
Utility\ProjectPackagesPrintUtility.cs (15)
120
p => new
FormattedCell
(p.PackageId),
121
p => new
FormattedCell
(GetAutoReferenceMarker(p, printingTransitive, ref autoReferenceFlagged)),
127
valueSelectors.Add(p => new
FormattedCell
(p?.RequestedVersion));
131
valueSelectors.Add(p => new
FormattedCell
(p.ResolvedVersion));
137
valueSelectors.Add(p => new
FormattedCell
(p.LatestVersion));
140
valueSelectors.Add(p => new
FormattedCell
(
142
valueSelectors.Add(p => new
FormattedCell
(
177
? new List<FormattedCell> { new
FormattedCell
(string.Empty, foregroundColor: null) }
185
? new List<FormattedCell> { new
FormattedCell
(string.Empty, foregroundColor: null) }
186
: vulnerabilityMetadata.Select(v => new
FormattedCell
(v.AdvisoryUrl?.ToString() ?? string.Empty, foregroundColor: null));
193
case 0: return new
FormattedCell
("Low", foregroundColor: null); // default color for low severity
194
case 1: return new
FormattedCell
("Moderate", foregroundColor: ConsoleColor.Yellow);
195
case 2: return new
FormattedCell
("High", foregroundColor: ConsoleColor.Red);
196
case 3: return new
FormattedCell
("Critical", foregroundColor: ConsoleColor.Red);
199
return new
FormattedCell
(string.Empty, foregroundColor: null);
Utility\TableParser.cs (2)
37
headers.AddRange(columnHeaders.Select(h => new
FormattedCell
(h)));
137
stringTable.Add(new
FormattedCell
(Environment.NewLine));