Skip to content
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

More abstract/generic console formatter/table #197

Open
PragTob opened this issue Mar 12, 2018 · 0 comments
Open

More abstract/generic console formatter/table #197

PragTob opened this issue Mar 12, 2018 · 0 comments

Comments

@PragTob
Copy link
Member

PragTob commented Mar 12, 2018

The console formatter is rather involved with the details of generating our table like nice and lean benchee output. Ideally we could create a module (or use a library, if it fits our use case) that decouples the rendering of the tabular like layout from the values we put in and how we format those.

What I'm thinking is something like this:

magic(collection_like_scenarios, %{"Column Header" => data_structure_or_function_ describing_values_are_rendered})

Something like this would be nice. It'd also make future features nicer in my head (optimal fit columns that aren't a specified width but just enough to accomodate their contents with some ok spacing).

It'd hopefully also make all our :io_lib.format code much easier to access.

This is not high priority but would certainly be nice and in the big "break it apart" could be another library that we extract :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant