How samfarah/consoletablesprinter works
ConsoleTablesPrinter is a small .NET library for turning objects and lists into styled console tables. The main workflow is: a caller invokes the extension API, the printer discovers visible properties and formats values, then renders a normal or Markdown table to console output. Table and cell styles, column attributes, and border options configure that rendering. The rendering excerpt omits some orchestration, so the graph leaves unverified internal calls out; it does not map tests or packaging.
Main entry points: ConsoleTablePrinter.Rendering.cs Table rendering · ConsoleTablePrinter.cs Print extensions · TableStyle.cs Table style · CellStyle.cs Cell style
Components 9
Public API
- Print extensions
ConsoleTablesPrinter/ConsoleTablePrinter.cs
Data and styling
- Table style
ConsoleTablesPrinter/Models/TableStyle.cs - Cell style
ConsoleTablesPrinter/Models/CellStyle.cs - Column attributes
ConsoleTablesPrinter/Attributes/TablePrintColAttribute.cs - Border and mode options
ConsoleTablesPrinter/Models/Enums
Rendering runtime
- Table rendering
ConsoleTablesPrinter/ConsoleTablePrinter.Rendering.cs - Property discovery
ConsoleTablesPrinter/ConsoleTablePrinter.Reflection.cs
Other components
- Library caller
- Console output
Connections 8
- Library caller → Print extensions: calls
- Print extensions → Table rendering: dispatches
- Table rendering → Property discovery: reads properties
- Table rendering → Column attributes: reads metadata
- Table rendering → Table style: reads options
- Table rendering → Cell style: applies styles
- Table rendering → Border and mode options: selects mode
- Table rendering → Console output: writes table