Support for minimalistic inline tables #43
cylewitruk
started this conversation in
Ideas
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As you know, my use-case is a bit mixed between prompts/display (think
kubectl
but with interactive prompts). One of the things that I do rather often is present simpler tables with data within a flow of interactions, i.e.:Pt.3 is often tabular data. it would be cool to implement a simplistic, opinionated table for display of simple data with the
cliclack
styling -- either standalone or using one of the available libs (i'm currently using prettytable).I'm thinking that it could be something like a
note
, but with headers and columnar alignment, and with a simplistic API. The APIs for a lot of the ASCII-table crates are rather involved, which would be nice to hide, removing all of the extra options. For users needing more, they can use one of those crates separately and embed them within anote
.This would be in-line with my suggestion for
indicatif
being behind a feature -- this functionality should be behind atables
feature if we would use an external dependency.I know we're going far beyond clack prompts with this kind of suggestion, but I don't necessarily think that's a bad thing... consistent CLI's take a lot of work otherwise 😅
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions