Add rule widget

Adds a new rule widget.
Also fixes some bugs I encountered while testing
some unrelated things in an extremely small console.
This commit is contained in:
Patrik Svensson
2020-10-20 01:07:58 +02:00
committed by Patrik Svensson
parent 1410cba6c5
commit 5a1b8a1710
16 changed files with 610 additions and 80 deletions

View File

@ -108,21 +108,22 @@ Now you can list available examples in this repository:
```
> dotnet example
────────────┬───────────────────────────────────────┬───────────────────────────────────────────────────
│ Name │ Path │ Description │
├────────────┼───────────────────────────────────────┼───────────────────────────────────────────────────┤
│ Borders │ examples/Borders/Borders.csproj │ Demonstrates the different kind of borders. │
│ Calendars │ examples/Calendars/Calendars.csproj │ Demonstrates how to render calendars. │
│ Colors │ examples/Colors/Colors.csproj │ Demonstrates how to use colors in the console. │
│ Columns │ examples/Columns/Columns.csproj │ Demonstrates how to render data into columns. │
│ Emojis │ examples/Emojis/Emojis.csproj │ Demonstrates how to render emojis. │
│ Exceptions │ examples/Exceptions/Exceptions.csproj │ Demonstrates how to render formatted exceptions. │
│ Grids │ examples/Grids/Grids.csproj │ Demonstrates how to render grids in a console. │
│ Info │ examples/Info/Info.csproj │ Displays the capabilities of the current console. │
│ Links │ examples/Links/Links.csproj │ Demonstrates how to render links in a console. │
│ Panels │ examples/Panels/Panels.csproj │ Demonstrates how to render items in panels. │
Tables │ examples/Tables/Tables.csproj │ Demonstrates how to render tables in a console.
└────────────┴───────────────────────────────────────┴───────────────────────────────────────────────────┘
────────────┬───────────────────────────────────────┬──────────────────────────────────────────────────────╮
│ Name │ Path │ Description
├────────────┼───────────────────────────────────────┼──────────────────────────────────────────────────────
│ Borders │ examples/Borders/Borders.csproj │ Demonstrates the different kind of borders.
│ Calendars │ examples/Calendars/Calendars.csproj │ Demonstrates how to render calendars.
│ Colors │ examples/Colors/Colors.csproj │ Demonstrates how to use colors in the console.
│ Columns │ examples/Columns/Columns.csproj │ Demonstrates how to render data into columns.
│ Emojis │ examples/Emojis/Emojis.csproj │ Demonstrates how to render emojis.
│ Exceptions │ examples/Exceptions/Exceptions.csproj │ Demonstrates how to render formatted exceptions.
│ Grids │ examples/Grids/Grids.csproj │ Demonstrates how to render grids in a console.
│ Info │ examples/Info/Info.csproj │ Displays the capabilities of the current console.
│ Links │ examples/Links/Links.csproj │ Demonstrates how to render links in a console.
│ Panels │ examples/Panels/Panels.csproj │ Demonstrates how to render items in panels.
Rules │ examples/Rules/Rules.csproj │ Demonstrates how to render horizontal rules (lines).
│ Tables │ examples/Tables/Tables.csproj │ Demonstrates how to render tables in a console. │
╰────────────┴───────────────────────────────────────┴──────────────────────────────────────────────────────╯
```
And to run an example: