cliui icon indicating copy to clipboard operation
cliui copied to clipboard

Feature: Add list to the ui features

Open BioPhoton opened this issue 1 year ago • 2 comments

The feature is basically similar to a table without borders.

I want to render something like this: image

At the moment i use this lib to print it.

I'm happy to style the content my self, but the column width would be good to get out of the box

BioPhoton avatar Feb 07 '24 17:02 BioPhoton

I think, creating a good abstraction for this will take a little while. Not sure, if I can give it attention right away.

However, I have added an example for this using the justify and the wrap helpers we have. So feel free to grab that code and see if works for your use-case. Happy to chat more, if you run into specific issues.

https://github.com/poppinss/cliui/blob/develop/examples/justified_columns.ts

thetutlage avatar Feb 08 '24 07:02 thetutlage

Just for completion I added the lib I use at the moment in the comment. https://github.com/yargs/cliui?tab=readme-ov-file#example

BioPhoton avatar Feb 23 '24 20:02 BioPhoton

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 25 '24 08:04 stale[bot]