-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 2 (Colors, New API, and More) #12
Comments
Track changes on the https://github.com/douglasg14b/BetterConsoleTables/tree/Version2 branch |
Making the actual configuration of each cell, row, or column user friendly is quite the pain... It would be unreasonable to expect the caller to pass in a complex configuration with each value.
|
More Progress, working through making the configuration easier as it's a bit of a chore right now, while keeping performance in mind. Right now cell formatting is controlled via the headers. Meaning the formatting granularity is per column, header vs rows. Individual cells cannot be controlled yet, however, it sets the formatting for each individual cell right now. The format setting needs to determine when it should and should not use the To Do (Performance):
|
Version 2 is stable and should be ready for a beta release. A nice fluent API has been developed as well. This also comes with a console colors/formatting library that performs the same functions as other libraries like crayon but MUCH more efficiently (ie. it isn't a cluster of regex). I created this from scratch because I didn't want unnecessary dependencies, and needed control over the performance characteristics. |
Performance actually appears to be better: 0.015 ms. Though this could be due to having a more controlled performance testing environment, and different hardware. |
2.0.0-beta1 Nuget Package2.0 is now in beta as a nuget package. Along with the Relicencing to LGPL-32.0 relicences from |
Goals/Scope:
[ ] WrappingTable
classoutputWidth
argumentOut of Scope:
This will mostly require a rewrite of much of the Table's working so I can bake in interoperability and compatibility while minimizing code reuse.
Misc Thoughts:
Extracting table through reflection:
Table.From<TModel>(TModel tableModel)
.From<>
returns a config builder for the type.AddColumn(TModel x => x.MyProp, ...config ... )
.AddColumn(TModel x => x.MyProp).SetColor(...).AlignContent(...).AddColumn(...) ...
Bugs
The text was updated successfully, but these errors were encountered: