Each table below has PowerShell, C# initializer and C# fluent tabs. Its frame is printed by the complete C# program shown with it, run at 120, 100, 80, 64, 48 and 36 columns. The data is invented, and the programs that show relative dates fix the time they measure from, so those read the same every day. From PowerShell, Show-ConsoleTable, Show-Console -View List and Show-Console -View Tree build the same widgets from pipeline input; the PowerShell page shows them beside Format-Table.
Tables that fit the window
ConsoleMonster tables negotiate their width instead of overflowing it. Pick a width to see exactly what a console of that width prints.
Priority, overflow and a footer for what is hidden
DNS records. The key column never hides; the SPF value wraps at its separators; the cache path is shortened in the middle; low-priority columns hide first and the footer names them.
- Priority, MinWidth and MaxWidth per column
- Wrap with MaxLines, Truncate, TruncateMiddle or Never
- A footer such as +2 columns (TTL, Cache file)
evotec.xyz · DNS records via Cloudflare DoH ╭────────────────────────────┬───────┬──────────┬────────────────────────────────────────┬─────────╮ │ Name │ Type │ TTL │ Data │ Latency │ ├────────────────────────────┼───────┼──────────┼────────────────────────────────────────┼─────────┤ │ evotec.xyz │ A │ 5 m 00 s │ 104.21.48.12 │ 12 ms │ │ evotec.xyz │ AAAA │ 5 m 00 s │ 2606:4700:3036::6815:300c │ 14 ms │ │ evotec.xyz │ MX │ 1 h 00 m │ 10 │ 18 ms │ │ │ │ │ evotec-xyz.mail.protection.outlook.com │ │ │ evotec.xyz │ TXT │ 1 h 00 m │ v=spf1 │ 21 ms │ │ │ │ │ include:spf.protection.outlook.com │ │ │ │ │ │ include:_spf.google.com… │ │ │ _dmarc.evotec.xyz │ TXT │ 1 h 00 m │ v=DMARC1; p=reject; │ 133 ms │ │ │ │ │ rua=mailto:[email protected]; │ │ │ │ │ │ ruf=mailto:[email protected]; fo=1 │ │ │ selector1._do…y.evotec.xyz │ CNAME │ 1 h 00 m │ selector1-evotec-xyz._domainkey. │ 16 ms │ │ │ │ │ evotecpl.onmicrosoft.com │ │ │ evotec.xyz │ CAA │ 1 h 00 m │ 0 issue "letsencrypt.org" │ 15 ms │ ╰────────────────────────────┴───────┴──────────┴────────────────────────────────────────┴─────────╯ +1 column (Cache file)
The program behind the DNS table
A new console project with the package, and this as its Program.cs. Change the width of your terminal (or the width above) and run it again.
dotnet new console -n Tables
cd Tables
dotnet add package ConsoleMonster
dotnet run$root = '/var/cache/dns/evotec.xyz/'
$rows = @(
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'A'
TTL = 300
Data = '104.21.48.12'
Latency = 12
Cache = ($root + 'A.json')
}
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'AAAA'
TTL = 300
Data = '2606:4700:3036::6815:300c'
Latency = 14
Cache = ($root + 'AAAA.json')
}
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'MX'
TTL = 3600
Data = '10 evotec-xyz.mail.protection.outlook.com'
Latency = 18
Cache = ($root + 'MX.json')
}
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'TXT'
TTL = 3600
Data = 'v=spf1 include:spf.protection.outlook.com include:_spf.google.com include:sendgrid.net include:mailgun.org ip4:51.38.120.9 ip4:51.38.120.10 -all'
Latency = 21
Cache = ($root + 'TXT.json')
}
[pscustomobject] @{
Name = '_dmarc.evotec.xyz'
Type = 'TXT'
TTL = 3600
Data = 'v=DMARC1; p=reject; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1'
Latency = 133
Cache = ($root + 'dmarc.TXT.json')
}
[pscustomobject] @{
Name = 'selector1._domainkey.evotec.xyz'
Type = 'CNAME'
TTL = 3600
Data = 'selector1-evotec-xyz._domainkey.evotecpl.onmicrosoft.com'
Latency = 16
Cache = ($root + 'selector1.domainkey.CNAME.json')
}
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'CAA'
TTL = 3600
Data = '0 issue "letsencrypt.org"'
Latency = 15
Cache = ($root + 'CAA.json')
}
)
$rows |
Show-ConsoleTable -Title '[bold]evotec.xyz[/] [muted]· DNS records via Cloudflare DoH[/]' -Property @(
@{ Name = 'Name'; Key = $true; Overflow = 'TruncateMiddle'; MinWidth = 10 }
@{ Name = 'Type'; Priority = 9; Overflow = 'Never' }
@{ Name = 'TTL'; Priority = 2; Presenter = 'Duration' }
@{ Name = 'Data'; Priority = 10; Overflow = 'Wrap'; MaxLines = 3; Flexible = $true
MinWidth = 28 }
@{ Name = 'Latency'; Priority = 3; Presenter = 'Number'; Unit = 'ms'; WarnAbove = 100 }
@{ Name = 'Cache'; Header = 'Cache file'; Priority = 1; Overflow = 'TruncateMiddle'
MinWidth = 20; MaxWidth = 36 }
)Full program
Import-Module ConsoleMonster
$root = '/var/cache/dns/evotec.xyz/'
$rows = @(
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'A'
TTL = 300
Data = '104.21.48.12'
Latency = 12
Cache = ($root + 'A.json')
}
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'AAAA'
TTL = 300
Data = '2606:4700:3036::6815:300c'
Latency = 14
Cache = ($root + 'AAAA.json')
}
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'MX'
TTL = 3600
Data = '10 evotec-xyz.mail.protection.outlook.com'
Latency = 18
Cache = ($root + 'MX.json')
}
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'TXT'
TTL = 3600
Data = 'v=spf1 include:spf.protection.outlook.com include:_spf.google.com include:sendgrid.net include:mailgun.org ip4:51.38.120.9 ip4:51.38.120.10 -all'
Latency = 21
Cache = ($root + 'TXT.json')
}
[pscustomobject] @{
Name = '_dmarc.evotec.xyz'
Type = 'TXT'
TTL = 3600
Data = 'v=DMARC1; p=reject; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1'
Latency = 133
Cache = ($root + 'dmarc.TXT.json')
}
[pscustomobject] @{
Name = 'selector1._domainkey.evotec.xyz'
Type = 'CNAME'
TTL = 3600
Data = 'selector1-evotec-xyz._domainkey.evotecpl.onmicrosoft.com'
Latency = 16
Cache = ($root + 'selector1.domainkey.CNAME.json')
}
[pscustomobject] @{
Name = 'evotec.xyz'
Type = 'CAA'
TTL = 3600
Data = '0 issue "letsencrypt.org"'
Latency = 15
Cache = ($root + 'CAA.json')
}
)
$rows |
Show-ConsoleTable -Title '[bold]evotec.xyz[/] [muted]· DNS records via Cloudflare DoH[/]' -Property @(
@{ Name = 'Name'; Key = $true; Overflow = 'TruncateMiddle'; MinWidth = 10 }
@{ Name = 'Type'; Priority = 9; Overflow = 'Never' }
@{ Name = 'TTL'; Priority = 2; Presenter = 'Duration' }
@{ Name = 'Data'; Priority = 10; Overflow = 'Wrap'; MaxLines = 3; Flexible = $true
MinWidth = 28 }
@{ Name = 'Latency'; Priority = 3; Presenter = 'Number'; Unit = 'ms'; WarnAbove = 100 }
@{ Name = 'Cache'; Header = 'Cache file'; Priority = 1; Overflow = 'TruncateMiddle'
MinWidth = 20; MaxWidth = 36 }
)const string Cache = "/var/cache/dns/evotec.xyz/";
Table table = new Table()
{
Title = "[bold]evotec.xyz[/] [muted]· DNS records via Cloudflare DoH[/]"
}.Column("Name", c =>
{
c.IsKey = true;
c.Overflow = ColumnOverflow.TruncateMiddle;
c.MinWidth = 10;
}).Column("Type", c =>
{
c.Priority = 9;
c.Overflow = ColumnOverflow.Never;
}).Column("TTL", c =>
{
c.Priority = 2;
c.Presenter = new DurationPresenter();
}).Column("Data", c =>
{
c.Priority = 10;
c.Overflow = ColumnOverflow.Wrap;
c.MaxLines = 3;
c.Flexible = true;
c.MinWidth = 28;
}).Column("Latency", c =>
{
c.Priority = 3;
c.Presenter = new NumberPresenter("ms");
c.RoleRule(RoleRule.Above(100, ThemeToken.Warn));
}).Column("Cache file", c =>
{
c.Priority = 1;
c.Overflow = ColumnOverflow.TruncateMiddle;
c.MinWidth = 20;
c.MaxWidth = 36;
});
table.Values("evotec.xyz", "A", 300, "104.21.48.12", 12, Cache + "A.json");
table.Values("evotec.xyz", "AAAA", 300, "2606:4700:3036::6815:300c", 14, Cache + "AAAA.json");
// … 11 more lines in the full program
table.Values("evotec.xyz", "CAA", 3600, "0 issue \"letsencrypt.org\"", 15, Cache + "CAA.json");
Terminal.Write(table);Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
const string Cache = "/var/cache/dns/evotec.xyz/";
Table table = new Table()
{
Title = "[bold]evotec.xyz[/] [muted]· DNS records via Cloudflare DoH[/]"
}.Column("Name", c =>
{
c.IsKey = true;
c.Overflow = ColumnOverflow.TruncateMiddle;
c.MinWidth = 10;
}).Column("Type", c =>
{
c.Priority = 9;
c.Overflow = ColumnOverflow.Never;
}).Column("TTL", c =>
{
c.Priority = 2;
c.Presenter = new DurationPresenter();
}).Column("Data", c =>
{
c.Priority = 10;
c.Overflow = ColumnOverflow.Wrap;
c.MaxLines = 3;
c.Flexible = true;
c.MinWidth = 28;
}).Column("Latency", c =>
{
c.Priority = 3;
c.Presenter = new NumberPresenter("ms");
c.RoleRule(RoleRule.Above(100, ThemeToken.Warn));
}).Column("Cache file", c =>
{
c.Priority = 1;
c.Overflow = ColumnOverflow.TruncateMiddle;
c.MinWidth = 20;
c.MaxWidth = 36;
});
table.Values("evotec.xyz", "A", 300, "104.21.48.12", 12, Cache + "A.json");
table.Values("evotec.xyz", "AAAA", 300, "2606:4700:3036::6815:300c", 14, Cache + "AAAA.json");
table.Values("evotec.xyz", "MX", 3600, "10 evotec-xyz.mail.protection.outlook.com", 18,
Cache + "MX.json");
table.Values("evotec.xyz", "TXT", 3600,
"v=spf1 include:spf.protection.outlook.com include:_spf.google.com include:sendgrid.net include:mailgun.org ip4:51.38.120.9 ip4:51.38.120.10 -all",
21, Cache + "TXT.json");
table.Values("_dmarc.evotec.xyz", "TXT", 3600,
"v=DMARC1; p=reject; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1", 133,
Cache + "_dmarc.TXT.json");
table.Values("selector1._domainkey.evotec.xyz", "CNAME", 3600,
"selector1-evotec-xyz._domainkey.evotecpl.onmicrosoft.com", 16,
Cache + "selector1._domainkey.CNAME.json");
table.Values("evotec.xyz", "CAA", 3600, "0 issue \"letsencrypt.org\"", 15, Cache + "CAA.json");
Terminal.Write(table);const string Cache = "/var/cache/dns/evotec.xyz/";
Table table = Ui.Table()
.Title("[bold]evotec.xyz[/] [muted]· DNS records via Cloudflare DoH[/]")
.Column("Name", c =>
{
c.Key().Overflow(ColumnOverflow.TruncateMiddle).MinWidth(10);
})
.Column("Type", c =>
{
c.Priority(9).Overflow(ColumnOverflow.Never);
})
.Column("TTL", c =>
{
c.Priority(2).Presenter(new DurationPresenter());
})
.Column("Data", c =>
{
c.Priority(10).Overflow(ColumnOverflow.Wrap).MaxLines(3).Flexible().MinWidth(28);
})
.Column("Latency", c =>
{
c.Priority(3)
.Presenter(new NumberPresenter("ms"))
.RoleRule(RoleRule.Above(100, ThemeToken.Warn));
})
.Column("Cache file", c =>
{
c.Priority(1).Overflow(ColumnOverflow.TruncateMiddle).MinWidth(20).MaxWidth(36);
});
table.Values("evotec.xyz", "A", 300, "104.21.48.12", 12, Cache + "A.json");
table.Values("evotec.xyz", "AAAA", 300, "2606:4700:3036::6815:300c", 14, Cache + "AAAA.json");
table.Values("evotec.xyz", "MX", 3600, "10 evotec-xyz.mail.protection.outlook.com", 18,
Cache + "MX.json");
table.Values("evotec.xyz", "TXT", 3600,
"v=spf1 include:spf.protection.outlook.com include:_spf.google.com include:sendgrid.net include:mailgun.org ip4:51.38.120.9 ip4:51.38.120.10 -all",
21, Cache + "TXT.json");
table.Values("_dmarc.evotec.xyz", "TXT", 3600,
"v=DMARC1; p=reject; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1", 133,
Cache + "_dmarc.TXT.json");
table.Values("selector1._domainkey.evotec.xyz", "CNAME", 3600,
"selector1-evotec-xyz._domainkey.evotecpl.onmicrosoft.com", 16,
Cache + "selector1._domainkey.CNAME.json");
table.Values("evotec.xyz", "CAA", 3600, "0 issue \"letsencrypt.org\"", 15, Cache + "CAA.json");
table.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
const string Cache = "/var/cache/dns/evotec.xyz/";
Table table = Ui.Table()
.Title("[bold]evotec.xyz[/] [muted]· DNS records via Cloudflare DoH[/]")
.Column("Name", c =>
{
c.Key().Overflow(ColumnOverflow.TruncateMiddle).MinWidth(10);
})
.Column("Type", c =>
{
c.Priority(9).Overflow(ColumnOverflow.Never);
})
.Column("TTL", c =>
{
c.Priority(2).Presenter(new DurationPresenter());
})
.Column("Data", c =>
{
c.Priority(10).Overflow(ColumnOverflow.Wrap).MaxLines(3).Flexible().MinWidth(28);
})
.Column("Latency", c =>
{
c.Priority(3)
.Presenter(new NumberPresenter("ms"))
.RoleRule(RoleRule.Above(100, ThemeToken.Warn));
})
.Column("Cache file", c =>
{
c.Priority(1).Overflow(ColumnOverflow.TruncateMiddle).MinWidth(20).MaxWidth(36);
});
table.Values("evotec.xyz", "A", 300, "104.21.48.12", 12, Cache + "A.json");
table.Values("evotec.xyz", "AAAA", 300, "2606:4700:3036::6815:300c", 14, Cache + "AAAA.json");
table.Values("evotec.xyz", "MX", 3600, "10 evotec-xyz.mail.protection.outlook.com", 18,
Cache + "MX.json");
table.Values("evotec.xyz", "TXT", 3600,
"v=spf1 include:spf.protection.outlook.com include:_spf.google.com include:sendgrid.net include:mailgun.org ip4:51.38.120.9 ip4:51.38.120.10 -all",
21, Cache + "TXT.json");
table.Values("_dmarc.evotec.xyz", "TXT", 3600,
"v=DMARC1; p=reject; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1", 133,
Cache + "_dmarc.TXT.json");
table.Values("selector1._domainkey.evotec.xyz", "CNAME", 3600,
"selector1-evotec-xyz._domainkey.evotecpl.onmicrosoft.com", 16,
Cache + "selector1._domainkey.CNAME.json");
table.Values("evotec.xyz", "CAA", 3600, "0 issue \"letsencrypt.org\"", 15, Cache + "CAA.json");
table.Show();
Status, durations and tone rules
Mail-security checks. Status presenters show a symbol and a word, so the result reads without colour; durations use the presenter's units.
evotec.xyz · mail security checks ╭─────────┬────────┬───────────────────────────────────────────────────────────────┬────────┬──────╮ │ Check │ Status │ Detail │ Took │ RFC │ ├─────────┼────────┼───────────────────────────────────────────────────────────────┼────────┼──────┤ │ SPF │ ✓ PASS │ 9 DNS lookups (limit 10); ends with -all │ 84 ms │ 7208 │ │ DMARC │ ✓ PASS │ p=reject, aggregate and forensic reports configured │ 41 ms │ 7489 │ │ DKIM │ ▲ WARN │ selector2 key is 1024-bit; selector1 is 2048-bit. Rotate │ 212 ms │ 6376 │ │ │ │ selector2 to a 2048-bit key │ │ │ │ MTA-STS │ ✗ FAIL │ policy file returns 404 at │ 1.4 s │ 8461 │ │ │ │ https://mta-sts.evotec.xyz/.well-known/mta-sts.txt │ │ │ │ TLS-RPT │ – SKIP │ not published │ 22 ms │ 8460 │ │ DNSSEC │ ▲ WARN │ zone is not signed │ 95 ms │ 4033 │ │ BIMI │ ◆ INFO │ no record; optional │ 19 ms │ — │ ╰─────────┴────────┴───────────────────────────────────────────────────────────────┴────────┴──────╯
evotec.xyz · mail security checks ╭─────────┬────────┬───────────────────────────────────────────────────────────────┬────────┬──────╮ │ Check │ Status │ Detail │ Took │ RFC │ ├─────────┼────────┼───────────────────────────────────────────────────────────────┼────────┼──────┤ │ SPF │ ✓ PASS │ 9 DNS lookups (limit 10); ends with -all │ 84 ms │ 7208 │ │ DMARC │ ✓ PASS │ p=reject, aggregate and forensic reports configured │ 41 ms │ 7489 │ │ DKIM │ ▲ WARN │ selector2 key is 1024-bit; selector1 is 2048-bit. Rotate │ 212 ms │ 6376 │ │ │ │ selector2 to a 2048-bit key │ │ │ │ MTA-STS │ ✗ FAIL │ policy file returns 404 at │ 1.4 s │ 8461 │ │ │ │ https://mta-sts.evotec.xyz/.well-known/mta-sts.txt │ │ │ │ TLS-RPT │ – SKIP │ not published │ 22 ms │ 8460 │ │ DNSSEC │ ▲ WARN │ zone is not signed │ 95 ms │ 4033 │ │ BIMI │ ◆ INFO │ no record; optional │ 19 ms │ — │ ╰─────────┴────────┴───────────────────────────────────────────────────────────────┴────────┴──────╯
- Cell presenters shared by tables, cards, key/value lists and trees
- A tone rule colours a value by threshold
- Below 60 cells the rows become cards
$rows = @(
[pscustomobject] @{
Check = 'SPF'
Status = 'Pass'
Detail = '9 DNS lookups (limit 10); ends with -all'
Took = [timespan]::FromMilliseconds(84)
RFC = '7208'
}
[pscustomobject] @{
Check = 'DMARC'
Status = 'Pass'
Detail = 'p=reject, aggregate and forensic reports configured'
Took = [timespan]::FromMilliseconds(41)
RFC = '7489'
}
[pscustomobject] @{
Check = 'DKIM'
Status = 'Warn'
Detail = 'selector2 key is 1024-bit; selector1 is 2048-bit. Rotate selector2 to a 2048-bit key'
Took = [timespan]::FromMilliseconds(212)
RFC = '6376'
}
[pscustomobject] @{
Check = 'MTA-STS'
Status = 'Fail'
Detail = 'policy file returns 404 at https://mta-sts.evotec.xyz/.well-known/mta-sts.txt'
Took = [timespan]::FromSeconds(1.4)
RFC = '8461'
}
[pscustomobject] @{
Check = 'TLS-RPT'
Status = 'Skip'
Detail = 'not published'
Took = [timespan]::FromMilliseconds(22)
RFC = '8460'
}
[pscustomobject] @{
Check = 'DNSSEC'
Status = 'Warn'
Detail = 'zone is not signed'
Took = [timespan]::FromMilliseconds(95)
RFC = '4033'
}
[pscustomobject] @{
Check = 'BIMI'
Status = 'Info'
Detail = 'no record; optional'
Took = [timespan]::FromMilliseconds(19)
RFC = $null
}
)
$rows | Show-ConsoleTable -Title '[bold]evotec.xyz[/] [muted]· mail security checks[/]' -Property @(
@{ Name = 'Check'; Key = $true; Overflow = 'Never' }
@{ Name = 'Status'; Priority = 10; Presenter = 'Status' }
@{ Name = 'Detail'; Priority = 5; Overflow = 'Wrap'; MaxLines = 2; Flexible = $true
MinWidth = 18 }
@{ Name = 'Took'; Priority = 1; Presenter = 'Duration' }
@{ Name = 'RFC'; Priority = 0; Overflow = 'Never' }
)Full program
Import-Module ConsoleMonster
$rows = @(
[pscustomobject] @{
Check = 'SPF'
Status = 'Pass'
Detail = '9 DNS lookups (limit 10); ends with -all'
Took = [timespan]::FromMilliseconds(84)
RFC = '7208'
}
[pscustomobject] @{
Check = 'DMARC'
Status = 'Pass'
Detail = 'p=reject, aggregate and forensic reports configured'
Took = [timespan]::FromMilliseconds(41)
RFC = '7489'
}
[pscustomobject] @{
Check = 'DKIM'
Status = 'Warn'
Detail = 'selector2 key is 1024-bit; selector1 is 2048-bit. Rotate selector2 to a 2048-bit key'
Took = [timespan]::FromMilliseconds(212)
RFC = '6376'
}
[pscustomobject] @{
Check = 'MTA-STS'
Status = 'Fail'
Detail = 'policy file returns 404 at https://mta-sts.evotec.xyz/.well-known/mta-sts.txt'
Took = [timespan]::FromSeconds(1.4)
RFC = '8461'
}
[pscustomobject] @{
Check = 'TLS-RPT'
Status = 'Skip'
Detail = 'not published'
Took = [timespan]::FromMilliseconds(22)
RFC = '8460'
}
[pscustomobject] @{
Check = 'DNSSEC'
Status = 'Warn'
Detail = 'zone is not signed'
Took = [timespan]::FromMilliseconds(95)
RFC = '4033'
}
[pscustomobject] @{
Check = 'BIMI'
Status = 'Info'
Detail = 'no record; optional'
Took = [timespan]::FromMilliseconds(19)
RFC = $null
}
)
$rows | Show-ConsoleTable -Title '[bold]evotec.xyz[/] [muted]· mail security checks[/]' -Property @(
@{ Name = 'Check'; Key = $true; Overflow = 'Never' }
@{ Name = 'Status'; Priority = 10; Presenter = 'Status' }
@{ Name = 'Detail'; Priority = 5; Overflow = 'Wrap'; MaxLines = 2; Flexible = $true
MinWidth = 18 }
@{ Name = 'Took'; Priority = 1; Presenter = 'Duration' }
@{ Name = 'RFC'; Priority = 0; Overflow = 'Never' }
)Table table = new Table()
{
Title = "[bold]evotec.xyz[/] [muted]· mail security checks[/]"
}.Column("Check", c =>
{
c.IsKey = true;
c.Overflow = ColumnOverflow.Never;
}).Column("Status", c =>
{
c.Priority = 10;
c.Presenter = CellPresenters.Status;
}).Column("Detail", c =>
{
c.Priority = 5;
c.Overflow = ColumnOverflow.Wrap;
c.MaxLines = 2;
c.Flexible = true;
c.MinWidth = 18;
}).Column("Took", c =>
{
c.Priority = 1;
c.Presenter = CellPresenters.Duration;
}).Column("RFC", c =>
{
c.Priority = 0;
c.Overflow = ColumnOverflow.Never;
});
table.Values("SPF", StatusKind.Pass, "9 DNS lookups (limit 10); ends with -all",
TimeSpan.FromMilliseconds(84), "7208");
table.Values("DMARC", StatusKind.Pass, "p=reject, aggregate and forensic reports configured",
TimeSpan.FromMilliseconds(41), "7489");
// … 11 more lines in the full program
Terminal.Write(table);Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Table table = new Table()
{
Title = "[bold]evotec.xyz[/] [muted]· mail security checks[/]"
}.Column("Check", c =>
{
c.IsKey = true;
c.Overflow = ColumnOverflow.Never;
}).Column("Status", c =>
{
c.Priority = 10;
c.Presenter = CellPresenters.Status;
}).Column("Detail", c =>
{
c.Priority = 5;
c.Overflow = ColumnOverflow.Wrap;
c.MaxLines = 2;
c.Flexible = true;
c.MinWidth = 18;
}).Column("Took", c =>
{
c.Priority = 1;
c.Presenter = CellPresenters.Duration;
}).Column("RFC", c =>
{
c.Priority = 0;
c.Overflow = ColumnOverflow.Never;
});
table.Values("SPF", StatusKind.Pass, "9 DNS lookups (limit 10); ends with -all",
TimeSpan.FromMilliseconds(84), "7208");
table.Values("DMARC", StatusKind.Pass, "p=reject, aggregate and forensic reports configured",
TimeSpan.FromMilliseconds(41), "7489");
table.Values("DKIM", StatusKind.Warn,
"selector2 key is 1024-bit; selector1 is 2048-bit. Rotate selector2 to a 2048-bit key",
TimeSpan.FromMilliseconds(212), "6376");
table.Values("MTA-STS", StatusKind.Fail,
"policy file returns 404 at https://mta-sts.evotec.xyz/.well-known/mta-sts.txt",
TimeSpan.FromSeconds(1.4), "8461");
table.Values("TLS-RPT", StatusKind.Skip, "not published", TimeSpan.FromMilliseconds(22), "8460");
table.Values("DNSSEC", StatusKind.Warn, "zone is not signed", TimeSpan.FromMilliseconds(95),
"4033");
table.Values("BIMI", StatusKind.Info, "no record; optional", TimeSpan.FromMilliseconds(19),
null);
Terminal.Write(table);Table table = Ui.Table()
.Title("[bold]evotec.xyz[/] [muted]· mail security checks[/]")
.Column("Check", c =>
{
c.Key().Overflow(ColumnOverflow.Never);
})
.Column("Status", c =>
{
c.Priority(10).Presenter(CellPresenters.Status);
})
.Column("Detail", c =>
{
c.Priority(5).Overflow(ColumnOverflow.Wrap).MaxLines(2).Flexible().MinWidth(18);
})
.Column("Took", c =>
{
c.Priority(1).Presenter(CellPresenters.Duration);
})
.Column("RFC", c =>
{
c.Priority(0).Overflow(ColumnOverflow.Never);
});
table.Values("SPF", StatusKind.Pass, "9 DNS lookups (limit 10); ends with -all",
TimeSpan.FromMilliseconds(84), "7208");
table.Values("DMARC", StatusKind.Pass, "p=reject, aggregate and forensic reports configured",
TimeSpan.FromMilliseconds(41), "7489");
table.Values("DKIM", StatusKind.Warn,
"selector2 key is 1024-bit; selector1 is 2048-bit. Rotate selector2 to a 2048-bit key",
TimeSpan.FromMilliseconds(212), "6376");
table.Values("MTA-STS", StatusKind.Fail,
"policy file returns 404 at https://mta-sts.evotec.xyz/.well-known/mta-sts.txt",
TimeSpan.FromSeconds(1.4), "8461");
table.Values("TLS-RPT", StatusKind.Skip, "not published", TimeSpan.FromMilliseconds(22), "8460");
table.Values("DNSSEC", StatusKind.Warn, "zone is not signed", TimeSpan.FromMilliseconds(95),
"4033");
table.Values("BIMI", StatusKind.Info, "no record; optional", TimeSpan.FromMilliseconds(19), null);
table.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Table table = Ui.Table()
.Title("[bold]evotec.xyz[/] [muted]· mail security checks[/]")
.Column("Check", c =>
{
c.Key().Overflow(ColumnOverflow.Never);
})
.Column("Status", c =>
{
c.Priority(10).Presenter(CellPresenters.Status);
})
.Column("Detail", c =>
{
c.Priority(5).Overflow(ColumnOverflow.Wrap).MaxLines(2).Flexible().MinWidth(18);
})
.Column("Took", c =>
{
c.Priority(1).Presenter(CellPresenters.Duration);
})
.Column("RFC", c =>
{
c.Priority(0).Overflow(ColumnOverflow.Never);
});
table.Values("SPF", StatusKind.Pass, "9 DNS lookups (limit 10); ends with -all",
TimeSpan.FromMilliseconds(84), "7208");
table.Values("DMARC", StatusKind.Pass, "p=reject, aggregate and forensic reports configured",
TimeSpan.FromMilliseconds(41), "7489");
table.Values("DKIM", StatusKind.Warn,
"selector2 key is 1024-bit; selector1 is 2048-bit. Rotate selector2 to a 2048-bit key",
TimeSpan.FromMilliseconds(212), "6376");
table.Values("MTA-STS", StatusKind.Fail,
"policy file returns 404 at https://mta-sts.evotec.xyz/.well-known/mta-sts.txt",
TimeSpan.FromSeconds(1.4), "8461");
table.Values("TLS-RPT", StatusKind.Skip, "not published", TimeSpan.FromMilliseconds(22), "8460");
table.Values("DNSSEC", StatusKind.Warn, "zone is not signed", TimeSpan.FromMilliseconds(95),
"4033");
table.Values("BIMI", StatusKind.Info, "no record; optional", TimeSpan.FromMilliseconds(19), null);
table.Show();
Groups, subtotals and totals
An assessment run summary grouped by target type, with subtotals, a totals row and a score drawn as a data bar inside the cell.
Nightly checks · run summary ╭──────────────────────────┬────────┬────────┬────────┬──────────┬──────────┬──────────────────╮ │ Target │ Result │ Passed │ Failed │ Warnings │ Duration │ Score │ ├─ Domains · 2 ────────────┼────────┼────────┼────────┼──────────┼──────────┼──────────────────┤ │ ad.adatum.com │ ✗ FAIL │ 9 │ 2 │ 5 │ 24 s │ ▆▆▆▆▆▆ 56 % │ │ eu.ad.adatum.com │ ✗ FAIL │ 13 │ 1 │ 1 │ 16 s │ ▆▆▆▆▆▆▆▆▆ 87 % │ │ Subtotal │ │ 22 │ 3 │ 6 │ 40 s │ 71.5 % │ ├─ Domain controllers · 5 ─┼────────┼────────┼────────┼──────────┼──────────┼──────────────────┤ │ DC01.ad.adatum.com │ ▲ WARN │ 26 │ 0 │ 3 │ 17 s │ ▆▆▆▆▆▆▆▆▆ 90 % │ │ DC02.ad.adatum.com │ ▲ WARN │ 23 │ 0 │ 6 │ 17 s │ ▆▆▆▆▆▆▆▆ 79 % │ │ DC03.ad.adatum.com │ ✗ FAIL │ 23 │ 3 │ 4 │ 19 s │ ▆▆▆▆▆▆▆▆ 77 % │ │ DC07.eu.ad.adatum.com │ ✗ FAIL │ 21 │ 4 │ 4 │ 16 s │ ▆▆▆▆▆▆▆ 72 % │ │ DC09.eu.ad.adatum.com │ ✓ PASS │ 30 │ 0 │ 0 │ 15 s │ ▆▆▆▆▆▆▆▆▆▆ 100 % │ │ Subtotal │ │ 123 │ 7 │ 17 │ 1 m 24 s │ 83.6 % │ ├──────────────────────────┼────────┼────────┼────────┼──────────┼──────────┼──────────────────┤ │ Total │ │ 145 │ 10 │ 23 │ 2 m 04 s │ 80.14 % │ ╰──────────────────────────┴────────┴────────┴────────┴──────────┴──────────┴──────────────────╯
Nightly checks · run summary ╭──────────────────────────┬────────┬────────┬────────┬──────────┬──────────┬──────────────────╮ │ Target │ Result │ Passed │ Failed │ Warnings │ Duration │ Score │ ├─ Domains · 2 ────────────┼────────┼────────┼────────┼──────────┼──────────┼──────────────────┤ │ ad.adatum.com │ ✗ FAIL │ 9 │ 2 │ 5 │ 24 s │ ▆▆▆▆▆▆ 56 % │ │ eu.ad.adatum.com │ ✗ FAIL │ 13 │ 1 │ 1 │ 16 s │ ▆▆▆▆▆▆▆▆▆ 87 % │ │ Subtotal │ │ 22 │ 3 │ 6 │ 40 s │ 71.5 % │ ├─ Domain controllers · 5 ─┼────────┼────────┼────────┼──────────┼──────────┼──────────────────┤ │ DC01.ad.adatum.com │ ▲ WARN │ 26 │ 0 │ 3 │ 17 s │ ▆▆▆▆▆▆▆▆▆ 90 % │ │ DC02.ad.adatum.com │ ▲ WARN │ 23 │ 0 │ 6 │ 17 s │ ▆▆▆▆▆▆▆▆ 79 % │ │ DC03.ad.adatum.com │ ✗ FAIL │ 23 │ 3 │ 4 │ 19 s │ ▆▆▆▆▆▆▆▆ 77 % │ │ DC07.eu.ad.adatum.com │ ✗ FAIL │ 21 │ 4 │ 4 │ 16 s │ ▆▆▆▆▆▆▆ 72 % │ │ DC09.eu.ad.adatum.com │ ✓ PASS │ 30 │ 0 │ 0 │ 15 s │ ▆▆▆▆▆▆▆▆▆▆ 100 % │ │ Subtotal │ │ 123 │ 7 │ 17 │ 1 m 24 s │ 83.6 % │ ├──────────────────────────┼────────┼────────┼────────┼──────────┼──────────┼──────────────────┤ │ Total │ │ 145 │ 10 │ 23 │ 2 m 04 s │ 80.14 % │ ╰──────────────────────────┴────────┴────────┴────────┴──────────┴──────────┴──────────────────╯
- AddGroup with ShowSubtotals
- Sum, Count, Average, Min and Max per column
- A data bar presenter in a cell
#region Using the object directly
# A custom presenter fixes the bar scale at 100 and adds a percent unit.
$dataBarType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.DataBarPresenter',
$true)
$numberType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.NumberPresenter',
$true)
$scorePresenter = $dataBarType::new(100, $numberType::new('%'))
#endregion
$rows = @(
[pscustomobject] @{
Group = 'Domains'
Target = 'ad.adatum.com'
Result = 'Fail'
Passed = 9
Failed = 2
Warnings = 5
Duration = [timespan]::FromSeconds(24)
Score = 56
}
[pscustomobject] @{
Group = 'Domains'
Target = 'eu.ad.adatum.com'
Result = 'Fail'
Passed = 13
Failed = 1
Warnings = 1
Duration = [timespan]::FromSeconds(16)
Score = 87
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC01.ad.adatum.com'
Result = 'Warn'
Passed = 26
Failed = 0
Warnings = 3
Duration = [timespan]::FromSeconds(17)
Score = 90
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC02.ad.adatum.com'
Result = 'Warn'
Passed = 23
Failed = 0
Warnings = 6
Duration = [timespan]::FromSeconds(17)
Score = 79
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC03.ad.adatum.com'
Result = 'Fail'
Passed = 23
Failed = 3
Warnings = 4
Duration = [timespan]::FromSeconds(19)
Score = 77
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC07.eu.ad.adatum.com'
Result = 'Fail'
Passed = 21
Failed = 4
Warnings = 4
Duration = [timespan]::FromSeconds(16)
Score = 72
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC09.eu.ad.adatum.com'
Result = 'Pass'
Passed = 30
Failed = 0
Warnings = 0
Duration = [timespan]::FromSeconds(15)
Score = 100
}
)
$tableParameters = @{
Title = '[bold]Nightly checks[/] [muted]· run summary[/]'
GroupBy = 'Group'
ShowSubtotals = $true
ShowTotals = $true
NoSort = $true
}
$rows |
Show-ConsoleTable @tableParameters -Property @(
@{ Name = 'Target'; Key = $true; Overflow = 'TruncateMiddle'; MinWidth = 12 }
@{ Name = 'Result'; Priority = 10; Presenter = 'Status' }
@{ Name = 'Passed'; Priority = 8; Presenter = 'Number'; Aggregate = 'Sum' }
@{ Name = 'Failed'; Priority = 9; Presenter = 'Number'; Aggregate = 'Sum'; FailAbove = 0 }
@{ Name = 'Warnings'; Priority = 6; Presenter = 'Number'; Aggregate = 'Sum'; WarnAbove = 0 }
@{ Name = 'Duration'; Priority = 4; Presenter = 'Duration'; Aggregate = 'Sum' }
@{ Name = 'Score'; Priority = 2; Presenter = $scorePresenter; Aggregate = 'Average' }
)Full program
Import-Module ConsoleMonster
#region Using the object directly
# A custom presenter fixes the bar scale at 100 and adds a percent unit.
$dataBarType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.DataBarPresenter',
$true)
$numberType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.NumberPresenter',
$true)
$scorePresenter = $dataBarType::new(100, $numberType::new('%'))
#endregion
$rows = @(
[pscustomobject] @{
Group = 'Domains'
Target = 'ad.adatum.com'
Result = 'Fail'
Passed = 9
Failed = 2
Warnings = 5
Duration = [timespan]::FromSeconds(24)
Score = 56
}
[pscustomobject] @{
Group = 'Domains'
Target = 'eu.ad.adatum.com'
Result = 'Fail'
Passed = 13
Failed = 1
Warnings = 1
Duration = [timespan]::FromSeconds(16)
Score = 87
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC01.ad.adatum.com'
Result = 'Warn'
Passed = 26
Failed = 0
Warnings = 3
Duration = [timespan]::FromSeconds(17)
Score = 90
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC02.ad.adatum.com'
Result = 'Warn'
Passed = 23
Failed = 0
Warnings = 6
Duration = [timespan]::FromSeconds(17)
Score = 79
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC03.ad.adatum.com'
Result = 'Fail'
Passed = 23
Failed = 3
Warnings = 4
Duration = [timespan]::FromSeconds(19)
Score = 77
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC07.eu.ad.adatum.com'
Result = 'Fail'
Passed = 21
Failed = 4
Warnings = 4
Duration = [timespan]::FromSeconds(16)
Score = 72
}
[pscustomobject] @{
Group = 'Domain controllers'
Target = 'DC09.eu.ad.adatum.com'
Result = 'Pass'
Passed = 30
Failed = 0
Warnings = 0
Duration = [timespan]::FromSeconds(15)
Score = 100
}
)
$tableParameters = @{
Title = '[bold]Nightly checks[/] [muted]· run summary[/]'
GroupBy = 'Group'
ShowSubtotals = $true
ShowTotals = $true
NoSort = $true
}
$rows |
Show-ConsoleTable @tableParameters -Property @(
@{ Name = 'Target'; Key = $true; Overflow = 'TruncateMiddle'; MinWidth = 12 }
@{ Name = 'Result'; Priority = 10; Presenter = 'Status' }
@{ Name = 'Passed'; Priority = 8; Presenter = 'Number'; Aggregate = 'Sum' }
@{ Name = 'Failed'; Priority = 9; Presenter = 'Number'; Aggregate = 'Sum'; FailAbove = 0 }
@{ Name = 'Warnings'; Priority = 6; Presenter = 'Number'; Aggregate = 'Sum'; WarnAbove = 0 }
@{ Name = 'Duration'; Priority = 4; Presenter = 'Duration'; Aggregate = 'Sum' }
@{ Name = 'Score'; Priority = 2; Presenter = $scorePresenter; Aggregate = 'Average' }
)Table table = new Table()
{
Title = "[bold]Nightly checks[/] [muted]· run summary[/]",
ShowSubtotals = true,
ShowTotals = true
}.Column("Target", c =>
{
c.IsKey = true;
c.Overflow = ColumnOverflow.TruncateMiddle;
c.MinWidth = 12;
}).Column("Result", c =>
{
c.Priority = 10;
c.Presenter = CellPresenters.Status;
}).Column("Passed", c =>
{
c.Priority = 8;
c.Presenter = CellPresenters.Number;
c.Aggregate = ColumnAggregate.Sum;
}).Column("Failed", c =>
{
c.Priority = 9;
c.Presenter = CellPresenters.Number;
c.Aggregate = ColumnAggregate.Sum;
c.RoleRule(RoleRule.Above(0, ThemeToken.Fail));
}).Column("Warnings", c =>
{
c.Priority = 6;
c.Presenter = CellPresenters.Number;
c.Aggregate = ColumnAggregate.Sum;
c.RoleRule(RoleRule.Above(0, ThemeToken.Warn));
}).Column("Duration", c =>
{
c.Priority = 4;
c.Presenter = CellPresenters.Duration;
c.Aggregate = ColumnAggregate.Sum;
}).Column("Score", c =>
{
c.Priority = 2;
c.Presenter = new DataBarPresenter(100, new NumberPresenter("%"));
c.Aggregate = ColumnAggregate.Average;
});
table.Group("Domains");
table.Values("ad.adatum.com", StatusKind.Fail, 9, 2, 5, TimeSpan.FromSeconds(24), 56);
table.Values("eu.ad.adatum.com", StatusKind.Fail, 13, 1, 1, TimeSpan.FromSeconds(16), 87);
// … 5 more lines in the full program
table.Values("DC09.eu.ad.adatum.com", StatusKind.Pass, 30, 0, 0, TimeSpan.FromSeconds(15), 100);
Terminal.Write(table);Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Table table = new Table()
{
Title = "[bold]Nightly checks[/] [muted]· run summary[/]",
ShowSubtotals = true,
ShowTotals = true
}.Column("Target", c =>
{
c.IsKey = true;
c.Overflow = ColumnOverflow.TruncateMiddle;
c.MinWidth = 12;
}).Column("Result", c =>
{
c.Priority = 10;
c.Presenter = CellPresenters.Status;
}).Column("Passed", c =>
{
c.Priority = 8;
c.Presenter = CellPresenters.Number;
c.Aggregate = ColumnAggregate.Sum;
}).Column("Failed", c =>
{
c.Priority = 9;
c.Presenter = CellPresenters.Number;
c.Aggregate = ColumnAggregate.Sum;
c.RoleRule(RoleRule.Above(0, ThemeToken.Fail));
}).Column("Warnings", c =>
{
c.Priority = 6;
c.Presenter = CellPresenters.Number;
c.Aggregate = ColumnAggregate.Sum;
c.RoleRule(RoleRule.Above(0, ThemeToken.Warn));
}).Column("Duration", c =>
{
c.Priority = 4;
c.Presenter = CellPresenters.Duration;
c.Aggregate = ColumnAggregate.Sum;
}).Column("Score", c =>
{
c.Priority = 2;
c.Presenter = new DataBarPresenter(100, new NumberPresenter("%"));
c.Aggregate = ColumnAggregate.Average;
});
table.Group("Domains");
table.Values("ad.adatum.com", StatusKind.Fail, 9, 2, 5, TimeSpan.FromSeconds(24), 56);
table.Values("eu.ad.adatum.com", StatusKind.Fail, 13, 1, 1, TimeSpan.FromSeconds(16), 87);
table.Group("Domain controllers");
table.Values("DC01.ad.adatum.com", StatusKind.Warn, 26, 0, 3, TimeSpan.FromSeconds(17), 90);
table.Values("DC02.ad.adatum.com", StatusKind.Warn, 23, 0, 6, TimeSpan.FromSeconds(17), 79);
table.Values("DC03.ad.adatum.com", StatusKind.Fail, 23, 3, 4, TimeSpan.FromSeconds(19), 77);
table.Values("DC07.eu.ad.adatum.com", StatusKind.Fail, 21, 4, 4, TimeSpan.FromSeconds(16), 72);
table.Values("DC09.eu.ad.adatum.com", StatusKind.Pass, 30, 0, 0, TimeSpan.FromSeconds(15), 100);
Terminal.Write(table);Table table = Ui.Table()
.Title("[bold]Nightly checks[/] [muted]· run summary[/]")
.ShowSubtotals()
.ShowTotals()
.Column("Target", c =>
{
c.Key().Overflow(ColumnOverflow.TruncateMiddle).MinWidth(12);
})
.Column("Result", c =>
{
c.Priority(10).Presenter(CellPresenters.Status);
})
.Column("Passed", c =>
{
c.Priority(8).Presenter(CellPresenters.Number).Aggregate(ColumnAggregate.Sum);
})
.Column("Failed", c =>
{
c.Priority(9)
.Presenter(CellPresenters.Number)
.Aggregate(ColumnAggregate.Sum)
.RoleRule(RoleRule.Above(0, ThemeToken.Fail));
})
.Column("Warnings", c =>
{
c.Priority(6)
.Presenter(CellPresenters.Number)
.Aggregate(ColumnAggregate.Sum)
.RoleRule(RoleRule.Above(0, ThemeToken.Warn));
})
.Column("Duration", c =>
{
c.Priority(4).Presenter(CellPresenters.Duration).Aggregate(ColumnAggregate.Sum);
})
.Column("Score", c =>
{
c.Priority(2)
.Presenter(new DataBarPresenter(100, new NumberPresenter("%")))
.Aggregate(ColumnAggregate.Average);
});
table.Group("Domains");
table.Values("ad.adatum.com", StatusKind.Fail, 9, 2, 5, TimeSpan.FromSeconds(24), 56);
table.Values("eu.ad.adatum.com", StatusKind.Fail, 13, 1, 1, TimeSpan.FromSeconds(16), 87);
table.Group("Domain controllers");
table.Values("DC01.ad.adatum.com", StatusKind.Warn, 26, 0, 3, TimeSpan.FromSeconds(17), 90);
table.Values("DC02.ad.adatum.com", StatusKind.Warn, 23, 0, 6, TimeSpan.FromSeconds(17), 79);
table.Values("DC03.ad.adatum.com", StatusKind.Fail, 23, 3, 4, TimeSpan.FromSeconds(19), 77);
table.Values("DC07.eu.ad.adatum.com", StatusKind.Fail, 21, 4, 4, TimeSpan.FromSeconds(16), 72);
table.Values("DC09.eu.ad.adatum.com", StatusKind.Pass, 30, 0, 0, TimeSpan.FromSeconds(15), 100);
table.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Table table = Ui.Table()
.Title("[bold]Nightly checks[/] [muted]· run summary[/]")
.ShowSubtotals()
.ShowTotals()
.Column("Target", c =>
{
c.Key().Overflow(ColumnOverflow.TruncateMiddle).MinWidth(12);
})
.Column("Result", c =>
{
c.Priority(10).Presenter(CellPresenters.Status);
})
.Column("Passed", c =>
{
c.Priority(8).Presenter(CellPresenters.Number).Aggregate(ColumnAggregate.Sum);
})
.Column("Failed", c =>
{
c.Priority(9)
.Presenter(CellPresenters.Number)
.Aggregate(ColumnAggregate.Sum)
.RoleRule(RoleRule.Above(0, ThemeToken.Fail));
})
.Column("Warnings", c =>
{
c.Priority(6)
.Presenter(CellPresenters.Number)
.Aggregate(ColumnAggregate.Sum)
.RoleRule(RoleRule.Above(0, ThemeToken.Warn));
})
.Column("Duration", c =>
{
c.Priority(4).Presenter(CellPresenters.Duration).Aggregate(ColumnAggregate.Sum);
})
.Column("Score", c =>
{
c.Priority(2)
.Presenter(new DataBarPresenter(100, new NumberPresenter("%")))
.Aggregate(ColumnAggregate.Average);
});
table.Group("Domains");
table.Values("ad.adatum.com", StatusKind.Fail, 9, 2, 5, TimeSpan.FromSeconds(24), 56);
table.Values("eu.ad.adatum.com", StatusKind.Fail, 13, 1, 1, TimeSpan.FromSeconds(16), 87);
table.Group("Domain controllers");
table.Values("DC01.ad.adatum.com", StatusKind.Warn, 26, 0, 3, TimeSpan.FromSeconds(17), 90);
table.Values("DC02.ad.adatum.com", StatusKind.Warn, 23, 0, 6, TimeSpan.FromSeconds(17), 79);
table.Values("DC03.ad.adatum.com", StatusKind.Fail, 23, 3, 4, TimeSpan.FromSeconds(19), 77);
table.Values("DC07.eu.ad.adatum.com", StatusKind.Fail, 21, 4, 4, TimeSpan.FromSeconds(16), 72);
table.Values("DC09.eu.ad.adatum.com", StatusKind.Pass, 30, 0, 0, TimeSpan.FromSeconds(15), 100);
table.Show();
Bytes, relative dates and top N
Build artifacts: sizes in bytes, build times, relative dates against a fixed clock, and the first five of 1,234 rows.
Build artifacts · Orion 2.0.0 ╭──────────────────────┬─────────┬─────────┬──────────┬──────────┬─────────────────────────────────╮ │ Artifact │ Kind │ Size │ Built in │ Created │ Path │ ├──────────────────────┼─────────┼─────────┼──────────┼──────────┼─────────────────────────────────┤ │ Orion.2.0.0.nupkg │ NuGet │ 1.41 MB │ 48 s │ 12 m ago │ D:\Builds\Orion…ion.2.0.0.nupkg │ │ Orion.2.0.0.snupkg │ Symbols │ 393 KB │ 3.1 s │ 12 m ago │ D:\Builds\Orion…on.2.0.0.snupkg │ │ Orion-2.0.0.zip │ Module │ 2.77 MB │ 12 s │ 11 m ago │ D:\Builds\Orion…Orion-2.0.0.zip │ │ Orion.PowerShell.dll │ Binary │ 184 KB │ 23 s │ 3 h ago │ D:\Builds\Orion….PowerShell.dll │ │ en-US\Orion-help.xml │ Help │ 94 KB │ 6.4 s │ 2 d ago │ D:\Builds\Orion…\Orion-help.xml │ ├──────────────────────┼─────────┼─────────┼──────────┼──────────┼─────────────────────────────────┤ │ Total │ │ 4.89 MB │ 1 m 33 s │ │ │ ╰──────────────────────┴─────────┴─────────┴──────────┴──────────┴─────────────────────────────────╯ +1 column (SHA256) Showing 5 of 1,234
Build artifacts · Orion 2.0.0 ╭──────────────────────┬─────────┬─────────┬──────────┬──────────┬─────────────────────────────────╮ │ Artifact │ Kind │ Size │ Built in │ Created │ Path │ ├──────────────────────┼─────────┼─────────┼──────────┼──────────┼─────────────────────────────────┤ │ Orion.2.0.0.nupkg │ NuGet │ 1.41 MB │ 48 s │ 12 m ago │ D:\Builds\Orion…ion.2.0.0.nupkg │ │ Orion.2.0.0.snupkg │ Symbols │ 393 KB │ 3.1 s │ 12 m ago │ D:\Builds\Orion…on.2.0.0.snupkg │ │ Orion-2.0.0.zip │ Module │ 2.77 MB │ 12 s │ 11 m ago │ D:\Builds\Orion…Orion-2.0.0.zip │ │ Orion.PowerShell.dll │ Binary │ 184 KB │ 23 s │ 3 h ago │ D:\Builds\Orion….PowerShell.dll │ │ en-US\Orion-help.xml │ Help │ 94 KB │ 6.4 s │ 2 d ago │ D:\Builds\Orion…\Orion-help.xml │ ├──────────────────────┼─────────┼─────────┼──────────┼──────────┼─────────────────────────────────┤ │ Total │ │ 4.89 MB │ 1 m 33 s │ │ │ ╰──────────────────────┴─────────┴─────────┴──────────┴──────────┴─────────────────────────────────╯ +1 column (SHA256) Showing 5 of 1,234
- Bytes, Duration and Date presenters
- MaxRows with TotalRowCount prints Showing 5 of 1,234
- Numbers follow the culture; the site renders en-US
# Relative dates use a fixed clock, matching both C# styles.
$now = [datetimeoffset] '2026-10-16T14:30:00+02:00'
$root = 'D:\Builds\Orion\Packed\'
$rows = @(
[pscustomobject] @{
Artifact = 'Orion.2.0.0.nupkg'
Kind = 'NuGet'
Size = 1482113
Built = [timespan]::FromSeconds(48.2)
Created = $now.AddMinutes(-12)
Path = ($root + 'Orion.2.0.0.nupkg')
SHA256 = '9f2c4e81a7d03b6e'
}
[pscustomobject] @{
Artifact = 'Orion.2.0.0.snupkg'
Kind = 'Symbols'
Size = 402331
Built = [timespan]::FromSeconds(3.1)
Created = $now.AddMinutes(-12)
Path = ($root + 'Orion.2.0.0.snupkg')
SHA256 = '41ab09cd77e2f310'
}
[pscustomobject] @{
Artifact = 'Orion-2.0.0.zip'
Kind = 'Module'
Size = 2904576
Built = [timespan]::FromSeconds(11.7)
Created = $now.AddMinutes(-11)
Path = ($root + 'Orion-2.0.0.zip')
SHA256 = 'c0ffee4251de9a07'
}
[pscustomobject] @{
Artifact = 'Orion.PowerShell.dll'
Kind = 'Binary'
Size = 188416
Built = [timespan]::FromSeconds(22.9)
Created = $now.AddHours(-3)
Path = 'D:\Builds\Orion\Release\net8.0\Orion.PowerShell.dll'
SHA256 = '77aa13f9b2c46e5d'
}
[pscustomobject] @{
Artifact = 'en-US\Orion-help.xml'
Kind = 'Help'
Size = 96210
Built = [timespan]::FromSeconds(6.4)
Created = $now.AddDays(-2)
Path = ($root + 'en-US\Orion-help.xml')
SHA256 = '0be4d29c6a1f8873'
}
[pscustomobject] @{
Artifact = 'Docs.zip'
Kind = 'Docs'
Size = 51302
Built = [timespan]::FromSeconds(1.2)
Created = $now.AddDays(-9)
Path = ($root + 'Docs.zip')
SHA256 = '5d6e7f8091a2b3c4'
}
)
$tableParameters = @{
Title = '[bold]Build artifacts[/] [muted]· Orion 2.0.0[/]'
ShowTotals = $true
MaxRows = 5
TotalRowCount = 1234
Presentation = (@{ Now = $now })
}
$rows |
Show-ConsoleTable @tableParameters -Property @(
@{ Name = 'Artifact'; Key = $true; Overflow = 'Never' }
@{ Name = 'Kind'; Priority = 3 }
@{ Name = 'Size'; Priority = 9; Presenter = 'Bytes'; Aggregate = 'Sum' }
@{ Name = 'Built'; Header = 'Built in'; Priority = 6; Presenter = 'Duration'
Aggregate = 'Sum' }
@{ Name = 'Created'; Priority = 4; Presenter = 'DateRelative' }
@{ Name = 'Path'; Priority = 1; Overflow = 'TruncateMiddle'; MinWidth = 20; MaxWidth = 40 }
@{ Name = 'SHA256'; Priority = 0; Overflow = 'Truncate'; MaxWidth = 14 }
)Full program
Import-Module ConsoleMonster
# Relative dates use a fixed clock, matching both C# styles.
$now = [datetimeoffset] '2026-10-16T14:30:00+02:00'
$root = 'D:\Builds\Orion\Packed\'
$rows = @(
[pscustomobject] @{
Artifact = 'Orion.2.0.0.nupkg'
Kind = 'NuGet'
Size = 1482113
Built = [timespan]::FromSeconds(48.2)
Created = $now.AddMinutes(-12)
Path = ($root + 'Orion.2.0.0.nupkg')
SHA256 = '9f2c4e81a7d03b6e'
}
[pscustomobject] @{
Artifact = 'Orion.2.0.0.snupkg'
Kind = 'Symbols'
Size = 402331
Built = [timespan]::FromSeconds(3.1)
Created = $now.AddMinutes(-12)
Path = ($root + 'Orion.2.0.0.snupkg')
SHA256 = '41ab09cd77e2f310'
}
[pscustomobject] @{
Artifact = 'Orion-2.0.0.zip'
Kind = 'Module'
Size = 2904576
Built = [timespan]::FromSeconds(11.7)
Created = $now.AddMinutes(-11)
Path = ($root + 'Orion-2.0.0.zip')
SHA256 = 'c0ffee4251de9a07'
}
[pscustomobject] @{
Artifact = 'Orion.PowerShell.dll'
Kind = 'Binary'
Size = 188416
Built = [timespan]::FromSeconds(22.9)
Created = $now.AddHours(-3)
Path = 'D:\Builds\Orion\Release\net8.0\Orion.PowerShell.dll'
SHA256 = '77aa13f9b2c46e5d'
}
[pscustomobject] @{
Artifact = 'en-US\Orion-help.xml'
Kind = 'Help'
Size = 96210
Built = [timespan]::FromSeconds(6.4)
Created = $now.AddDays(-2)
Path = ($root + 'en-US\Orion-help.xml')
SHA256 = '0be4d29c6a1f8873'
}
[pscustomobject] @{
Artifact = 'Docs.zip'
Kind = 'Docs'
Size = 51302
Built = [timespan]::FromSeconds(1.2)
Created = $now.AddDays(-9)
Path = ($root + 'Docs.zip')
SHA256 = '5d6e7f8091a2b3c4'
}
)
$tableParameters = @{
Title = '[bold]Build artifacts[/] [muted]· Orion 2.0.0[/]'
ShowTotals = $true
MaxRows = 5
TotalRowCount = 1234
Presentation = (@{ Now = $now })
}
$rows |
Show-ConsoleTable @tableParameters -Property @(
@{ Name = 'Artifact'; Key = $true; Overflow = 'Never' }
@{ Name = 'Kind'; Priority = 3 }
@{ Name = 'Size'; Priority = 9; Presenter = 'Bytes'; Aggregate = 'Sum' }
@{ Name = 'Built'; Header = 'Built in'; Priority = 6; Presenter = 'Duration'
Aggregate = 'Sum' }
@{ Name = 'Created'; Priority = 4; Presenter = 'DateRelative' }
@{ Name = 'Path'; Priority = 1; Overflow = 'TruncateMiddle'; MinWidth = 20; MaxWidth = 40 }
@{ Name = 'SHA256'; Priority = 0; Overflow = 'Truncate'; MaxWidth = 14 }
)// Relative dates are measured from a fixed time, so this example prints the same every day.
DateTimeOffset now = new DateTimeOffset(2026, 10, 16, 14, 30, 0, TimeSpan.FromHours(2));
const string Root = @"D:\Builds\Orion\Packed\";
Table table = new Table()
{
Title = "[bold]Build artifacts[/] [muted]· Orion 2.0.0[/]",
ShowTotals = true,
MaxRows = 5,
TotalRowCount = 1234,
Presentation = new PresentationOptions
{
Now = now
}
}.Column("Artifact", c =>
{
c.IsKey = true;
c.Overflow = ColumnOverflow.Never;
}).Column("Kind", c =>
{
c.Priority = 3;
}).Column("Size", c =>
{
c.Priority = 9;
c.Presenter = CellPresenters.Bytes;
c.Aggregate = ColumnAggregate.Sum;
}).Column("Built in", c =>
{
c.Priority = 6;
c.Presenter = CellPresenters.Duration;
c.Aggregate = ColumnAggregate.Sum;
}).Column("Created", c =>
{
c.Priority = 4;
c.Presenter = new DatePresenter(DateDisplay.Relative);
}).Column("Path", c =>
{
c.Priority = 1;
c.Overflow = ColumnOverflow.TruncateMiddle;
c.MinWidth = 20;
c.MaxWidth = 40;
}).Column("SHA256", c =>
{
c.Priority = 0;
c.Overflow = ColumnOverflow.Truncate;
c.MaxWidth = 14;
});
table.Values("Orion.2.0.0.nupkg", "NuGet", 1_482_113L, TimeSpan.FromSeconds(48.2),
now.AddMinutes(-12), Root + "Orion.2.0.0.nupkg", "9f2c4e81a7d03b6e");
table.Values("Orion.2.0.0.snupkg", "Symbols", 402_331L, TimeSpan.FromSeconds(3.1),
now.AddMinutes(-12), Root + "Orion.2.0.0.snupkg", "41ab09cd77e2f310");
// … 9 more lines in the full program
Terminal.Write(table);Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Widgets;
// Relative dates are measured from a fixed time, so this example prints the same every day.
DateTimeOffset now = new DateTimeOffset(2026, 10, 16, 14, 30, 0, TimeSpan.FromHours(2));
const string Root = @"D:\Builds\Orion\Packed\";
Table table = new Table()
{
Title = "[bold]Build artifacts[/] [muted]· Orion 2.0.0[/]",
ShowTotals = true,
MaxRows = 5,
TotalRowCount = 1234,
Presentation = new PresentationOptions
{
Now = now
}
}.Column("Artifact", c =>
{
c.IsKey = true;
c.Overflow = ColumnOverflow.Never;
}).Column("Kind", c =>
{
c.Priority = 3;
}).Column("Size", c =>
{
c.Priority = 9;
c.Presenter = CellPresenters.Bytes;
c.Aggregate = ColumnAggregate.Sum;
}).Column("Built in", c =>
{
c.Priority = 6;
c.Presenter = CellPresenters.Duration;
c.Aggregate = ColumnAggregate.Sum;
}).Column("Created", c =>
{
c.Priority = 4;
c.Presenter = new DatePresenter(DateDisplay.Relative);
}).Column("Path", c =>
{
c.Priority = 1;
c.Overflow = ColumnOverflow.TruncateMiddle;
c.MinWidth = 20;
c.MaxWidth = 40;
}).Column("SHA256", c =>
{
c.Priority = 0;
c.Overflow = ColumnOverflow.Truncate;
c.MaxWidth = 14;
});
table.Values("Orion.2.0.0.nupkg", "NuGet", 1_482_113L, TimeSpan.FromSeconds(48.2),
now.AddMinutes(-12), Root + "Orion.2.0.0.nupkg", "9f2c4e81a7d03b6e");
table.Values("Orion.2.0.0.snupkg", "Symbols", 402_331L, TimeSpan.FromSeconds(3.1),
now.AddMinutes(-12), Root + "Orion.2.0.0.snupkg", "41ab09cd77e2f310");
table.Values("Orion-2.0.0.zip", "Module", 2_904_576L, TimeSpan.FromSeconds(11.7),
now.AddMinutes(-11), Root + "Orion-2.0.0.zip", "c0ffee4251de9a07");
table.Values("Orion.PowerShell.dll", "Binary", 188_416L, TimeSpan.FromSeconds(22.9),
now.AddHours(-3), @"D:\Builds\Orion\Release\net8.0\Orion.PowerShell.dll",
"77aa13f9b2c46e5d");
table.Values("en-US\\Orion-help.xml", "Help", 96_210L, TimeSpan.FromSeconds(6.4),
now.AddDays(-2), Root + @"en-US\Orion-help.xml", "0be4d29c6a1f8873");
table.Values("Docs.zip", "Docs", 51_302L, TimeSpan.FromSeconds(1.2), now.AddDays(-9),
Root + "Docs.zip", "5d6e7f8091a2b3c4");
Terminal.Write(table);// Relative dates are measured from a fixed time, so this example prints the same every day.
DateTimeOffset now = new DateTimeOffset(2026, 10, 16, 14, 30, 0, TimeSpan.FromHours(2));
const string Root = @"D:\Builds\Orion\Packed\";
Table table = Ui.Table()
.Title("[bold]Build artifacts[/] [muted]· Orion 2.0.0[/]")
.ShowTotals()
.MaxRows(5)
.TotalRowCount(1234)
.Presentation(options =>
{
options.Now(now);
})
.Column("Artifact", c =>
{
c.Key().Overflow(ColumnOverflow.Never);
})
.Column("Kind", c =>
{
c.Priority(3);
})
.Column("Size", c =>
{
c.Priority(9).Presenter(CellPresenters.Bytes).Aggregate(ColumnAggregate.Sum);
})
.Column("Built in", c =>
{
c.Priority(6).Presenter(CellPresenters.Duration).Aggregate(ColumnAggregate.Sum);
})
.Column("Created", c =>
{
c.Priority(4).Presenter(new DatePresenter(DateDisplay.Relative));
})
.Column("Path", c =>
{
c.Priority(1).Overflow(ColumnOverflow.TruncateMiddle).MinWidth(20).MaxWidth(40);
})
.Column("SHA256", c =>
{
c.Priority(0).Overflow(ColumnOverflow.Truncate).MaxWidth(14);
});
table.Values("Orion.2.0.0.nupkg", "NuGet", 1_482_113L, TimeSpan.FromSeconds(48.2),
now.AddMinutes(-12), Root + "Orion.2.0.0.nupkg", "9f2c4e81a7d03b6e");
table.Values("Orion.2.0.0.snupkg", "Symbols", 402_331L, TimeSpan.FromSeconds(3.1),
now.AddMinutes(-12), Root + "Orion.2.0.0.snupkg", "41ab09cd77e2f310");
table.Values("Orion-2.0.0.zip", "Module", 2_904_576L, TimeSpan.FromSeconds(11.7),
now.AddMinutes(-11), Root + "Orion-2.0.0.zip", "c0ffee4251de9a07");
table.Values("Orion.PowerShell.dll", "Binary", 188_416L, TimeSpan.FromSeconds(22.9),
now.AddHours(-3), @"D:\Builds\Orion\Release\net8.0\Orion.PowerShell.dll", "77aa13f9b2c46e5d");
table.Values("en-US\\Orion-help.xml", "Help", 96_210L, TimeSpan.FromSeconds(6.4), now.AddDays(-2),
Root + @"en-US\Orion-help.xml", "0be4d29c6a1f8873");
table.Values("Docs.zip", "Docs", 51_302L, TimeSpan.FromSeconds(1.2), now.AddDays(-9),
Root + "Docs.zip", "5d6e7f8091a2b3c4");
table.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Widgets;
// Relative dates are measured from a fixed time, so this example prints the same every day.
DateTimeOffset now = new DateTimeOffset(2026, 10, 16, 14, 30, 0, TimeSpan.FromHours(2));
const string Root = @"D:\Builds\Orion\Packed\";
Table table = Ui.Table()
.Title("[bold]Build artifacts[/] [muted]· Orion 2.0.0[/]")
.ShowTotals()
.MaxRows(5)
.TotalRowCount(1234)
.Presentation(options =>
{
options.Now(now);
})
.Column("Artifact", c =>
{
c.Key().Overflow(ColumnOverflow.Never);
})
.Column("Kind", c =>
{
c.Priority(3);
})
.Column("Size", c =>
{
c.Priority(9).Presenter(CellPresenters.Bytes).Aggregate(ColumnAggregate.Sum);
})
.Column("Built in", c =>
{
c.Priority(6).Presenter(CellPresenters.Duration).Aggregate(ColumnAggregate.Sum);
})
.Column("Created", c =>
{
c.Priority(4).Presenter(new DatePresenter(DateDisplay.Relative));
})
.Column("Path", c =>
{
c.Priority(1).Overflow(ColumnOverflow.TruncateMiddle).MinWidth(20).MaxWidth(40);
})
.Column("SHA256", c =>
{
c.Priority(0).Overflow(ColumnOverflow.Truncate).MaxWidth(14);
});
table.Values("Orion.2.0.0.nupkg", "NuGet", 1_482_113L, TimeSpan.FromSeconds(48.2),
now.AddMinutes(-12), Root + "Orion.2.0.0.nupkg", "9f2c4e81a7d03b6e");
table.Values("Orion.2.0.0.snupkg", "Symbols", 402_331L, TimeSpan.FromSeconds(3.1),
now.AddMinutes(-12), Root + "Orion.2.0.0.snupkg", "41ab09cd77e2f310");
table.Values("Orion-2.0.0.zip", "Module", 2_904_576L, TimeSpan.FromSeconds(11.7),
now.AddMinutes(-11), Root + "Orion-2.0.0.zip", "c0ffee4251de9a07");
table.Values("Orion.PowerShell.dll", "Binary", 188_416L, TimeSpan.FromSeconds(22.9),
now.AddHours(-3), @"D:\Builds\Orion\Release\net8.0\Orion.PowerShell.dll", "77aa13f9b2c46e5d");
table.Values("en-US\\Orion-help.xml", "Help", 96_210L, TimeSpan.FromSeconds(6.4), now.AddDays(-2),
Root + @"en-US\Orion-help.xml", "0be4d29c6a1f8873");
table.Values("Docs.zip", "Docs", 51_302L, TimeSpan.FromSeconds(1.2), now.AddDays(-9),
Root + "Docs.zip", "5d6e7f8091a2b3c4");
table.Show();
One record as a record view
A certificate as sections, fields and nested tables. Empty fields are hidden and dates show both absolute and relative forms.
mail.evotec.xyz · TLS certificate · ECDSA P-256 · Let's Encrypt Certificate Subject CN=mail.evotec.xyz Issuer CN=R11, O=Let's Encrypt, C=US Serial 04:A1:7F:3C:9E:22:51:0B:6D:8E:F0:13:44:2A:BC:91 Valid from (UTC) 2026-08-09 12:00 (2 mo ago) Valid to (UTC) 2026-11-08 12:00 (in 22 d) Key ECDSA P-256 OCSP stapling ✓ yes Revoked – no Subject alternative names 3 mail.evotec.xyz autodiscover.evotec.xyz mta-sts.evotec.xyz Chain 3 certificates Subject Expires Key ─────────────────────── ─────── ─────────── CN=mail.evotec.xyz in 22 d ECDSA P-256 CN=R11, O=Let's Encrypt in 4 mo RSA 2048 CN=ISRG Root X1 in 8 y RSA 4096
mail.evotec.xyz · TLS certificate · ECDSA P-256 · Let's Encrypt Certificate Subject CN=mail.evotec.xyz Issuer CN=R11, O=Let's Encrypt, C=US Serial 04:A1:7F:3C:9E:22:51:0B:6D:8E:F0:13:44:2A:BC:91 Valid from (UTC) 2026-08-09 12:00 (2 mo ago) Valid to (UTC) 2026-11-08 12:00 (in 22 d) Key ECDSA P-256 OCSP stapling ✓ yes Revoked – no Subject alternative names 3 mail.evotec.xyz autodiscover.evotec.xyz mta-sts.evotec.xyz Chain 3 certificates Subject Expires Key ─────────────────────── ─────── ─────────── CN=mail.evotec.xyz in 22 d ECDSA P-256 CN=R11, O=Let's Encrypt in 4 mo RSA 2048 CN=ISRG Root X1 in 8 y RSA 4096
- Sections, groups and nested widgets
- Boolean presenters can mark either value as the problem
- A single record from Show-ConsoleTable renders this way
#region Using the object directly
# RecordView's sections are a C# composition API. Use its ordinary object from PowerShell, then Show-Console.
# Resolve advanced C# types without registering global type accelerators.
$DatePresenterType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.DatePresenter',
$true)
$RecordViewType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Widgets.RecordView',
$true)
$RoleRuleType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.RoleRule',
$true)
$BooleanPresenterType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.BooleanPresenter',
$true)
# RecordView exposes sections and nested widgets through the shared C# API.
$now = [datetimeoffset]::new(2026, 10, 16, 14, 30, 0, [timespan]::FromHours(2))
$view = $RecordViewType::new('[bold]mail.evotec.xyz[/]')
$view.Summary = "TLS certificate · ECDSA P-256 · Let's Encrypt"
$view.Presentation.Now = $now
$view.Presentation.TimeZone = [timezoneinfo]::Utc
$null = $view.Section('Certificate')
$null = $view.Field('Subject', 'CN=mail.evotec.xyz')
$null = $view.Field('Issuer', "CN=R11, O=Let's Encrypt, C=US")
$null = $view.Field('Serial', '04:A1:7F:3C:9E:22:51:0B:6D:8E:F0:13:44:2A:BC:91')
$both = $DatePresenterType::new('Both')
$null = $view.Field('Valid from (UTC)',
[datetimeoffset]::new(2026, 8, 9, 12, 0, 0, [timespan]::Zero), $both)
$expiryRules = [Array]::CreateInstance($RoleRuleType, 2)
$expiryRules[0] = $RoleRuleType::Below(0, [ConsoleMonster.Styling.ThemeToken]::Fail)
$expiryRules[1] = $RoleRuleType::Below(30, [ConsoleMonster.Styling.ThemeToken]::Warn)
$null = $view.Field('Valid to (UTC)',
[datetimeoffset]::new(2026, 11, 8, 12, 0, 0, [timespan]::Zero), $both, $expiryRules)
$null = $view.Field('Key', 'ECDSA P-256')
$null = $view.Field('OCSP stapling', $true)
$null = $view.Field('Revoked', $false, $BooleanPresenterType::new($true))
$null = $view.Field('Notes', $null)
$null = $view.Group('Subject alternative names', '3')
$names = @(
[pscustomobject] @{ Name = 'mail.evotec.xyz' }
[pscustomobject] @{ Name = 'autodiscover.evotec.xyz' }
[pscustomobject] @{ Name = 'mta-sts.evotec.xyz' }
) | New-ConsoleTable -Border None -NoHeader -RecordViewRows 0 -Property Name
$null = $view.Widget($names)
$null = $view.Group('Chain', '3 certificates')
$chain = @(
[pscustomobject] @{ Subject = 'CN=mail.evotec.xyz'
Expires = [datetimeoffset]::new(2026, 11, 8, 12, 0, 0, [timespan]::Zero)
Key = 'ECDSA P-256' }
[pscustomobject] @{ Subject = "CN=R11, O=Let's Encrypt"
Expires = [datetimeoffset]::new(2027, 3, 12, 23, 59, 59, [timespan]::Zero)
Key = 'RSA 2048' }
[pscustomobject] @{ Subject = 'CN=ISRG Root X1'
Expires = [datetimeoffset]::new(2035, 6, 4, 11, 4, 38, [timespan]::Zero); Key = 'RSA 4096' }
) |
New-ConsoleTable -Border Minimal -RecordViewRows 0 -Presentation (@{ Now = $now
TimeZone = [timezoneinfo]::Utc }) -Property @(
@{ Name = 'Subject'; Key = $true }
@{ Name = 'Expires'; Presenter = $DatePresenterType::new('Relative')
Role = @{ Below = 30; Role = 'Warn' } }
@{ Name = 'Key'; Priority = 1 }
)
$null = $view.Widget($chain)
#endregion
$view | Show-ConsoleFull program
Import-Module ConsoleMonster
#region Using the object directly
# RecordView's sections are a C# composition API. Use its ordinary object from PowerShell, then Show-Console.
# Resolve advanced C# types without registering global type accelerators.
$DatePresenterType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.DatePresenter',
$true)
$RecordViewType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Widgets.RecordView',
$true)
$RoleRuleType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.RoleRule',
$true)
$BooleanPresenterType = [ConsoleMonster.Terminal].Assembly.GetType('ConsoleMonster.Presenters.BooleanPresenter',
$true)
# RecordView exposes sections and nested widgets through the shared C# API.
$now = [datetimeoffset]::new(2026, 10, 16, 14, 30, 0, [timespan]::FromHours(2))
$view = $RecordViewType::new('[bold]mail.evotec.xyz[/]')
$view.Summary = "TLS certificate · ECDSA P-256 · Let's Encrypt"
$view.Presentation.Now = $now
$view.Presentation.TimeZone = [timezoneinfo]::Utc
$null = $view.Section('Certificate')
$null = $view.Field('Subject', 'CN=mail.evotec.xyz')
$null = $view.Field('Issuer', "CN=R11, O=Let's Encrypt, C=US")
$null = $view.Field('Serial', '04:A1:7F:3C:9E:22:51:0B:6D:8E:F0:13:44:2A:BC:91')
$both = $DatePresenterType::new('Both')
$null = $view.Field('Valid from (UTC)',
[datetimeoffset]::new(2026, 8, 9, 12, 0, 0, [timespan]::Zero), $both)
$expiryRules = [Array]::CreateInstance($RoleRuleType, 2)
$expiryRules[0] = $RoleRuleType::Below(0, [ConsoleMonster.Styling.ThemeToken]::Fail)
$expiryRules[1] = $RoleRuleType::Below(30, [ConsoleMonster.Styling.ThemeToken]::Warn)
$null = $view.Field('Valid to (UTC)',
[datetimeoffset]::new(2026, 11, 8, 12, 0, 0, [timespan]::Zero), $both, $expiryRules)
$null = $view.Field('Key', 'ECDSA P-256')
$null = $view.Field('OCSP stapling', $true)
$null = $view.Field('Revoked', $false, $BooleanPresenterType::new($true))
$null = $view.Field('Notes', $null)
$null = $view.Group('Subject alternative names', '3')
$names = @(
[pscustomobject] @{ Name = 'mail.evotec.xyz' }
[pscustomobject] @{ Name = 'autodiscover.evotec.xyz' }
[pscustomobject] @{ Name = 'mta-sts.evotec.xyz' }
) | New-ConsoleTable -Border None -NoHeader -RecordViewRows 0 -Property Name
$null = $view.Widget($names)
$null = $view.Group('Chain', '3 certificates')
$chain = @(
[pscustomobject] @{ Subject = 'CN=mail.evotec.xyz'
Expires = [datetimeoffset]::new(2026, 11, 8, 12, 0, 0, [timespan]::Zero)
Key = 'ECDSA P-256' }
[pscustomobject] @{ Subject = "CN=R11, O=Let's Encrypt"
Expires = [datetimeoffset]::new(2027, 3, 12, 23, 59, 59, [timespan]::Zero)
Key = 'RSA 2048' }
[pscustomobject] @{ Subject = 'CN=ISRG Root X1'
Expires = [datetimeoffset]::new(2035, 6, 4, 11, 4, 38, [timespan]::Zero); Key = 'RSA 4096' }
) |
New-ConsoleTable -Border Minimal -RecordViewRows 0 -Presentation (@{ Now = $now
TimeZone = [timezoneinfo]::Utc }) -Property @(
@{ Name = 'Subject'; Key = $true }
@{ Name = 'Expires'; Presenter = $DatePresenterType::new('Relative')
Role = @{ Below = 30; Role = 'Warn' } }
@{ Name = 'Key'; Priority = 1 }
)
$null = $view.Widget($chain)
#endregion
$view | Show-Console// Relative dates are measured from a fixed time, so this example prints the same every day.
DateTimeOffset now = new DateTimeOffset(2026, 10, 16, 14, 30, 0, TimeSpan.FromHours(2));
RecordView view = new RecordView("[bold]mail.evotec.xyz[/]")
{
Summary = "TLS certificate · ECDSA P-256 · Let's Encrypt",
Presentation = new PresentationOptions
{
Now = now,
TimeZone = TimeZoneInfo.Utc
}
};
view.Section("Certificate");
view.Field("Subject", "CN=mail.evotec.xyz");
view.Field("Issuer", "CN=R11, O=Let's Encrypt, C=US");
view.Field("Serial", "04:A1:7F:3C:9E:22:51:0B:6D:8E:F0:13:44:2A:BC:91");
view.Field(
"Valid from (UTC)",
new DateTimeOffset(2026, 8, 9, 12, 0, 0, TimeSpan.Zero),
new DatePresenter(DateDisplay.Both));
view.Field(
"Valid to (UTC)",
new DateTimeOffset(2026, 11, 8, 12, 0, 0, TimeSpan.Zero),
new DatePresenter(DateDisplay.Both),
new[] { RoleRule.Below(0, ThemeToken.Fail), RoleRule.Below(30, ThemeToken.Warn) });
view.Field("Key", "ECDSA P-256");
view.Field("OCSP stapling", true);
view.Field("Revoked", false, new BooleanPresenter("yes", "no", true));
view.Field("Notes", (object? )null);
view.Group("Subject alternative names", "3");
view.Widget(new Table() { Border = TableBorder.None, ShowHeader = false, RecordViewRows = 0 }
.Column("Name")
.Values("mail.evotec.xyz")
.Values("autodiscover.evotec.xyz")
.Values("mta-sts.evotec.xyz"));
view.Group("Chain", "3 certificates");
view.Widget(new Table()
{
Border = TableBorder.Minimal,
RecordViewRows = 0,
Presentation = new PresentationOptions { Now = now, TimeZone = TimeZoneInfo.Utc }
}
.Column("Subject", c =>
{
c.IsKey = true;
})
.Column("Expires", c =>
{
c.Presenter = new DatePresenter(DateDisplay.Relative);
c.RoleRule(RoleRule.Below(30, ThemeToken.Warn));
})
.Column("Key", c =>
{
c.Priority = 1;
})
.Values(
"CN=mail.evotec.xyz",
new DateTimeOffset(2026, 11, 8, 12, 0, 0, TimeSpan.Zero),
"ECDSA P-256")
.Values(
"CN=R11, O=Let's Encrypt",
new DateTimeOffset(2027, 3, 12, 23, 59, 59, TimeSpan.Zero),
"RSA 2048")
.Values(
"CN=ISRG Root X1",
new DateTimeOffset(2035, 6, 4, 11, 4, 38, TimeSpan.Zero),
"RSA 4096"));
Terminal.Write(view);Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// Relative dates are measured from a fixed time, so this example prints the same every day.
DateTimeOffset now = new DateTimeOffset(2026, 10, 16, 14, 30, 0, TimeSpan.FromHours(2));
RecordView view = new RecordView("[bold]mail.evotec.xyz[/]")
{
Summary = "TLS certificate · ECDSA P-256 · Let's Encrypt",
Presentation = new PresentationOptions
{
Now = now,
TimeZone = TimeZoneInfo.Utc
}
};
view.Section("Certificate");
view.Field("Subject", "CN=mail.evotec.xyz");
view.Field("Issuer", "CN=R11, O=Let's Encrypt, C=US");
view.Field("Serial", "04:A1:7F:3C:9E:22:51:0B:6D:8E:F0:13:44:2A:BC:91");
view.Field(
"Valid from (UTC)",
new DateTimeOffset(2026, 8, 9, 12, 0, 0, TimeSpan.Zero),
new DatePresenter(DateDisplay.Both));
view.Field(
"Valid to (UTC)",
new DateTimeOffset(2026, 11, 8, 12, 0, 0, TimeSpan.Zero),
new DatePresenter(DateDisplay.Both),
new[] { RoleRule.Below(0, ThemeToken.Fail), RoleRule.Below(30, ThemeToken.Warn) });
view.Field("Key", "ECDSA P-256");
view.Field("OCSP stapling", true);
view.Field("Revoked", false, new BooleanPresenter("yes", "no", true));
view.Field("Notes", (object? )null);
view.Group("Subject alternative names", "3");
view.Widget(new Table() { Border = TableBorder.None, ShowHeader = false, RecordViewRows = 0 }
.Column("Name")
.Values("mail.evotec.xyz")
.Values("autodiscover.evotec.xyz")
.Values("mta-sts.evotec.xyz"));
view.Group("Chain", "3 certificates");
view.Widget(new Table()
{
Border = TableBorder.Minimal,
RecordViewRows = 0,
Presentation = new PresentationOptions { Now = now, TimeZone = TimeZoneInfo.Utc }
}
.Column("Subject", c =>
{
c.IsKey = true;
})
.Column("Expires", c =>
{
c.Presenter = new DatePresenter(DateDisplay.Relative);
c.RoleRule(RoleRule.Below(30, ThemeToken.Warn));
})
.Column("Key", c =>
{
c.Priority = 1;
})
.Values(
"CN=mail.evotec.xyz",
new DateTimeOffset(2026, 11, 8, 12, 0, 0, TimeSpan.Zero),
"ECDSA P-256")
.Values(
"CN=R11, O=Let's Encrypt",
new DateTimeOffset(2027, 3, 12, 23, 59, 59, TimeSpan.Zero),
"RSA 2048")
.Values(
"CN=ISRG Root X1",
new DateTimeOffset(2035, 6, 4, 11, 4, 38, TimeSpan.Zero),
"RSA 4096"));
Terminal.Write(view);// Relative dates are measured from a fixed time, so this example prints the same every day.
DateTimeOffset now = new DateTimeOffset(2026, 10, 16, 14, 30, 0, TimeSpan.FromHours(2));
RecordView view = new RecordView("[bold]mail.evotec.xyz[/]")
.Summary("TLS certificate · ECDSA P-256 · Let's Encrypt")
.Presentation(options =>
{
options.Now(now).TimeZone(TimeZoneInfo.Utc);
});
view.Section("Certificate");
view.Field("Subject", "CN=mail.evotec.xyz");
view.Field("Issuer", "CN=R11, O=Let's Encrypt, C=US");
view.Field("Serial", "04:A1:7F:3C:9E:22:51:0B:6D:8E:F0:13:44:2A:BC:91");
view.Field(
"Valid from (UTC)",
new DateTimeOffset(2026, 8, 9, 12, 0, 0, TimeSpan.Zero),
new DatePresenter(DateDisplay.Both));
view.Field(
"Valid to (UTC)",
new DateTimeOffset(2026, 11, 8, 12, 0, 0, TimeSpan.Zero),
new DatePresenter(DateDisplay.Both),
new[] { RoleRule.Below(0, ThemeToken.Fail), RoleRule.Below(30, ThemeToken.Warn) });
view.Field("Key", "ECDSA P-256");
view.Field("OCSP stapling", true);
view.Field("Revoked", false, new BooleanPresenter("yes", "no", true));
view.Field("Notes", (object? )null);
view.Group("Subject alternative names", "3");
view.Widget(Ui.Table()
.Border(TableBorder.None)
.ShowHeader(false)
.RecordViewRows(0)
.Column("Name")
.Values("mail.evotec.xyz")
.Values("autodiscover.evotec.xyz")
.Values("mta-sts.evotec.xyz"));
view.Group("Chain", "3 certificates");
view.Widget(Ui.Table()
.Border(TableBorder.Minimal)
.RecordViewRows(0)
.Presentation(options =>
{
options.Now(now).TimeZone(TimeZoneInfo.Utc);
})
.Column("Subject", c =>
{
c.Key();
})
.Column("Expires", c =>
{
c.Presenter(new DatePresenter(DateDisplay.Relative))
.RoleRule(RoleRule.Below(30, ThemeToken.Warn));
})
.Column("Key", c =>
{
c.Priority(1);
})
.Values(
"CN=mail.evotec.xyz",
new DateTimeOffset(2026, 11, 8, 12, 0, 0, TimeSpan.Zero),
"ECDSA P-256")
.Values(
"CN=R11, O=Let's Encrypt",
new DateTimeOffset(2027, 3, 12, 23, 59, 59, TimeSpan.Zero),
"RSA 2048")
.Values(
"CN=ISRG Root X1",
new DateTimeOffset(2035, 6, 4, 11, 4, 38, TimeSpan.Zero),
"RSA 4096"));
view.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// Relative dates are measured from a fixed time, so this example prints the same every day.
DateTimeOffset now = new DateTimeOffset(2026, 10, 16, 14, 30, 0, TimeSpan.FromHours(2));
RecordView view = new RecordView("[bold]mail.evotec.xyz[/]")
.Summary("TLS certificate · ECDSA P-256 · Let's Encrypt")
.Presentation(options =>
{
options.Now(now).TimeZone(TimeZoneInfo.Utc);
});
view.Section("Certificate");
view.Field("Subject", "CN=mail.evotec.xyz");
view.Field("Issuer", "CN=R11, O=Let's Encrypt, C=US");
view.Field("Serial", "04:A1:7F:3C:9E:22:51:0B:6D:8E:F0:13:44:2A:BC:91");
view.Field(
"Valid from (UTC)",
new DateTimeOffset(2026, 8, 9, 12, 0, 0, TimeSpan.Zero),
new DatePresenter(DateDisplay.Both));
view.Field(
"Valid to (UTC)",
new DateTimeOffset(2026, 11, 8, 12, 0, 0, TimeSpan.Zero),
new DatePresenter(DateDisplay.Both),
new[] { RoleRule.Below(0, ThemeToken.Fail), RoleRule.Below(30, ThemeToken.Warn) });
view.Field("Key", "ECDSA P-256");
view.Field("OCSP stapling", true);
view.Field("Revoked", false, new BooleanPresenter("yes", "no", true));
view.Field("Notes", (object? )null);
view.Group("Subject alternative names", "3");
view.Widget(Ui.Table()
.Border(TableBorder.None)
.ShowHeader(false)
.RecordViewRows(0)
.Column("Name")
.Values("mail.evotec.xyz")
.Values("autodiscover.evotec.xyz")
.Values("mta-sts.evotec.xyz"));
view.Group("Chain", "3 certificates");
view.Widget(Ui.Table()
.Border(TableBorder.Minimal)
.RecordViewRows(0)
.Presentation(options =>
{
options.Now(now).TimeZone(TimeZoneInfo.Utc);
})
.Column("Subject", c =>
{
c.Key();
})
.Column("Expires", c =>
{
c.Presenter(new DatePresenter(DateDisplay.Relative))
.RoleRule(RoleRule.Below(30, ThemeToken.Warn));
})
.Column("Key", c =>
{
c.Priority(1);
})
.Values(
"CN=mail.evotec.xyz",
new DateTimeOffset(2026, 11, 8, 12, 0, 0, TimeSpan.Zero),
"ECDSA P-256")
.Values(
"CN=R11, O=Let's Encrypt",
new DateTimeOffset(2027, 3, 12, 23, 59, 59, TimeSpan.Zero),
"RSA 2048")
.Values(
"CN=ISRG Root X1",
new DateTimeOffset(2035, 6, 4, 11, 4, 38, TimeSpan.Zero),
"RSA 4096"));
view.Show();
The object inspector
Nested dictionaries and lists, shown as indented sections and nested tables. The inspector also reads .NET objects, PSObjects and JSON, with depth, item and node limits.
evotec.xyz zone · 6 members Name evotec.xyz Serial 2,351,234,567 Signed – no Soa 3 fields Primary dana.ns.cloudflare.com Refresh 2 h 46 m Expire 7 d 0 h NameServers 2 items Host Address LatencyMs ────────────────────── ─────────────── ───────── dana.ns.cloudflare.com 108.162.192.103 12 kirk.ns.cloudflare.com 172.64.33.149 14 Tags 3 items [0] production [1] cloudflare [2] doh
evotec.xyz zone · 6 members Name evotec.xyz Serial 2,351,234,567 Signed – no Soa 3 fields Primary dana.ns.cloudflare.com Refresh 2 h 46 m Expire 7 d 0 h NameServers 2 items Host Address LatencyMs ────────────────────── ─────────────── ───────── dana.ns.cloudflare.com 108.162.192.103 12 kirk.ns.cloudflare.com 172.64.33.149 14 Tags 3 items [0] production [1] cloudflare [2] doh
- MaxDepth, MaxItems and MaxNodes bound one inspection
- Cycles are detected and marked
- Show-ConsoleObject in PowerShell
$zone = [ordered] @{
Name = 'evotec.xyz'
Serial = 2351234567L
Signed = $false
Soa = [ordered] @{
Primary = 'dana.ns.cloudflare.com'
Refresh = [timespan]::FromSeconds(10000)
Expire = [timespan]::FromSeconds(604800)
}
NameServers = @(
[pscustomobject] @{ Host = 'dana.ns.cloudflare.com'; Address = '108.162.192.103'
LatencyMs = 12 }
[pscustomobject] @{ Host = 'kirk.ns.cloudflare.com'; Address = '172.64.33.149'
LatencyMs = 14 }
)
Tags = @('production', 'cloudflare', 'doh')
}
$zone | Show-Console -View Tree -Depth 3 -Title 'evotec.xyz zone'Full program
Import-Module ConsoleMonster
$zone = [ordered] @{
Name = 'evotec.xyz'
Serial = 2351234567L
Signed = $false
Soa = [ordered] @{
Primary = 'dana.ns.cloudflare.com'
Refresh = [timespan]::FromSeconds(10000)
Expire = [timespan]::FromSeconds(604800)
}
NameServers = @(
[pscustomobject] @{ Host = 'dana.ns.cloudflare.com'; Address = '108.162.192.103'
LatencyMs = 12 }
[pscustomobject] @{ Host = 'kirk.ns.cloudflare.com'; Address = '172.64.33.149'
LatencyMs = 14 }
)
Tags = @('production', 'cloudflare', 'doh')
}
$zone | Show-Console -View Tree -Depth 3 -Title 'evotec.xyz zone'Dictionary<string, object?> zone = new() {
["Name"] = "evotec.xyz",
["Serial"] = 2351234567L,
["Signed"] = false,
["Soa"] = new Dictionary<string, object?> {
["Primary"] = "dana.ns.cloudflare.com",
["Refresh"] = TimeSpan.FromSeconds(10000),
["Expire"] = TimeSpan.FromSeconds(604800)
},
["NameServers"] = new List<Dictionary<string, object?>> {
new()
{
["Host"] = "dana.ns.cloudflare.com",
["Address"] = "108.162.192.103",
["LatencyMs"] = 12
},
new()
{
["Host"] = "kirk.ns.cloudflare.com",
["Address"] = "172.64.33.149",
["LatencyMs"] = 14
}
},
["Tags"] = new[] { "production", "cloudflare", "doh" }
};
Terminal.Write(new InspectorView(zone, new InspectorOptions { MaxDepth = 3 }, "evotec.xyz zone"));Full program
using ConsoleMonster;
using ConsoleMonster.Data;
using ConsoleMonster.Widgets;
Dictionary<string, object?> zone = new() {
["Name"] = "evotec.xyz",
["Serial"] = 2351234567L,
["Signed"] = false,
["Soa"] = new Dictionary<string, object?> {
["Primary"] = "dana.ns.cloudflare.com",
["Refresh"] = TimeSpan.FromSeconds(10000),
["Expire"] = TimeSpan.FromSeconds(604800)
},
["NameServers"] = new List<Dictionary<string, object?>> {
new()
{
["Host"] = "dana.ns.cloudflare.com",
["Address"] = "108.162.192.103",
["LatencyMs"] = 12
},
new()
{
["Host"] = "kirk.ns.cloudflare.com",
["Address"] = "172.64.33.149",
["LatencyMs"] = 14
}
},
["Tags"] = new[] { "production", "cloudflare", "doh" }
};
Terminal.Write(new InspectorView(zone, new InspectorOptions { MaxDepth = 3 }, "evotec.xyz zone"));Dictionary<string, object?> zone = new() {
["Name"] = "evotec.xyz",
["Serial"] = 2351234567L,
["Signed"] = false,
["Soa"] = new Dictionary<string, object?> {
["Primary"] = "dana.ns.cloudflare.com",
["Refresh"] = TimeSpan.FromSeconds(10000),
["Expire"] = TimeSpan.FromSeconds(604800)
},
["NameServers"] = new List<Dictionary<string, object?>> {
new()
{
["Host"] = "dana.ns.cloudflare.com",
["Address"] = "108.162.192.103",
["LatencyMs"] = 12
},
new()
{
["Host"] = "kirk.ns.cloudflare.com",
["Address"] = "172.64.33.149",
["LatencyMs"] = 14
}
},
["Tags"] = new[] { "production", "cloudflare", "doh" }
};
new InspectorView(zone, new InspectorOptions().MaxDepth(3), "evotec.xyz zone").Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Data;
using ConsoleMonster.Widgets;
Dictionary<string, object?> zone = new() {
["Name"] = "evotec.xyz",
["Serial"] = 2351234567L,
["Signed"] = false,
["Soa"] = new Dictionary<string, object?> {
["Primary"] = "dana.ns.cloudflare.com",
["Refresh"] = TimeSpan.FromSeconds(10000),
["Expire"] = TimeSpan.FromSeconds(604800)
},
["NameServers"] = new List<Dictionary<string, object?>> {
new()
{
["Host"] = "dana.ns.cloudflare.com",
["Address"] = "108.162.192.103",
["LatencyMs"] = 12
},
new()
{
["Host"] = "kirk.ns.cloudflare.com",
["Address"] = "172.64.33.149",
["LatencyMs"] = 14
}
},
["Tags"] = new[] { "production", "cloudflare", "doh" }
};
new InspectorView(zone, new InspectorOptions().MaxDepth(3), "evotec.xyz zone").Show();