[CLI] Format long subcommand descriptions #2318
Labels
area/cli
Kamel CLI
area/ux
Improves user experience
good first issue
Does not require full understanding of the codebase
status/never-stale
As we're introducing long description for certain subcommands, we can see that the
help
format is a bit ugly when there is a breaking line:I wonder if we should use some utility to get the terminal size (if it's a terminal, ie, https://pkg.go.dev/golang.org/x/term#GetSize), and adjust the description length and new lines based on that value. That would produce something like:
The text was updated successfully, but these errors were encountered: