You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/05/24 08:36:01 UTC
[GitHub] [camel-k] squakez opened a new issue #2318: [CLI] Format long subcommand descriptions
squakez opened a new issue #2318:
URL: https://github.com/apache/camel-k/issues/2318
As we're introducing long description for certain subcommands, we can see that the format is a bit ugly when there is a new line:
```
--configmap stringArray Add a ConfigMap
-c, --connect stringArray A ServiceBinding or Provisioned Service that the integration should bind
to, specified as [[apigroup/]version:]kind:[namespace/]name
-d, --dependency stringArray A dependency that should be included, e.g., "-d camel-mail" for a Came
l component, or "-d mvn:org.my:app:1.0" for a Maven dependency
--dev Enable Dev mode (equivalent to "-w --logs --sync")
```
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:
```
--configmap stringArray Add a ConfigMap
-c, --connect stringArray A ServiceBinding or Provisioned Service that the integration should bind
to, specified as [[apigroup/]version:]kind:[namespace/]name
-d, --dependency stringArray A dependency that should be included, e.g., "-d camel-mail" for a Came
l component, or "-d mvn:org.my:app:1.0" for a Maven dependency
--dev Enable Dev mode (equivalent to "-w --logs --sync")
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] github-actions[bot] commented on issue #2318: [CLI] Format long subcommand descriptions
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2318:
URL: https://github.com/apache/camel-k/issues/2318#issuecomment-948126739
This issue has been automatically marked as stale due to 90 days of inactivity.
It will be closed if no further activity occurs within 15 days.
If you think that’s incorrect or the issue should never stale, please simply write any comment.
Thanks for your contributions!
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] github-actions[bot] commented on issue #2318: [CLI] Format long subcommand descriptions
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2318:
URL: https://github.com/apache/camel-k/issues/2318#issuecomment-1016987017
This issue has been automatically marked as stale due to 90 days of inactivity.
It will be closed if no further activity occurs within 15 days.
If you think that’s incorrect or the issue should never stale, please simply write any comment.
Thanks for your contributions!
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org