• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

davewalker5 / ADS-B-BaseStationReader / 17804934237

17 Sep 2025 04:40PM UTC coverage: 89.917% (-3.8%) from 93.692%
17804934237

push

github

web-flow
Merge pull request #41 from davewalker5/filtered-tracking

Filtered tracking

381 of 461 branches covered (82.65%)

Branch coverage included in aggregate %.

1465 of 1592 new or added lines in 52 files covered. (92.02%)

1465 of 1592 relevant lines covered (92.02%)

38.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/BaseStationReader.Terminal/Logic/HelpTabulator.cs
1
using BaseStationReader.Entities.Config;
2
using BaseStationReader.Entities.Interfaces;
3
using Spectre.Console;
4

5
namespace BaseStationReader.Terminal.Logic
6
{
7
    public class HelpTabulator : IHelpGenerator
8
    {
9
        /// <summary>
10
        /// Tabulate a collection of available command line options
11
        /// </summary>
12
        /// <param name="options"></param>
13
        public void Generate(IEnumerable<CommandLineOption> options)
NEW
14
        {
×
NEW
15
            var table = new Table();
×
16

NEW
17
            table.AddColumn("Option");
×
NEW
18
            table.AddColumn("Short Form");
×
NEW
19
            table.AddColumn("Min Values");
×
NEW
20
            table.AddColumn("Max Values");
×
NEW
21
            table.AddColumn("Description");
×
22

NEW
23
            foreach (var option in options)
×
NEW
24
            {
×
NEW
25
                var rowData = new string[] {
×
NEW
26
                    GetCellData(option.Name),
×
NEW
27
                    GetCellData(option.ShortName),
×
NEW
28
                    GetCellData(option.MinimumNumberOfValues.ToString()),
×
NEW
29
                    GetCellData(option.MaximumNumberOfValues.ToString()),
×
NEW
30
                    GetCellData(option.Description)
×
NEW
31
                };
×
32

NEW
33
                table.AddRow(rowData);
×
NEW
34
            }
×
35

NEW
36
            AnsiConsole.Write(table);
×
NEW
37
        }
×
38

39
        private string GetCellData(string value)
NEW
40
            => $"[white]{value}[/]";
×
41
    }
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc