KuthumiPepple opened a new pull request, #3227:
URL: https://github.com/apache/camel-k/pull/3227

   <!-- Description -->
   
   Closes #2318
   @squakez This is a draft PR. I would like to hear your thoughts on my plan 
to tackle this issue, to know if I'm on the right track. So I think the problem 
comes from the usage template string defined in the cobra package. Specifically 
this: `{{.LocalFlags.FlagUsages}}`. The returned string is not wrapped and so 
when a line break occurs, the output written to the terminal is not in order. 
My plan is to replace the `.LocalFlags.FlagUsages` with a template function 
that calls the `cmd.Flags().FlagUsagesWrapped` function. As you suggested 
previously, I may have to get the terminal size. I will probably use the size 
to set the flag description length. What do you think am I on the right track? 
If not what suggestions could you give me?
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" 
to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   NONE
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to