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 2020/01/14 22:00:36 UTC

[GitHub] [camel-k] bfitzpat opened a new issue #1203: Offer easier access to trait list

bfitzpat opened a new issue #1203: Offer easier access to trait list
URL: https://github.com/apache/camel-k/issues/1203
 
 
   We'd like to be able to help the user specify traits when they start a new integration in the Camel K extension in VS Code. There are a lot of traits available for customizing the Camel K instance, but it's tough to get a complete list except by looking at the docs (https://camel.apache.org/camel-k/latest/traits/traits.html) which are spread across many pages for the various customizable components. 
   
   We looked into possibly using https://www.npmjs.com/package/node-go-require to consume the https://github.com/apache/camel-k/blob/8a719066009fae5cade8001958ab3ec6708bc1e6/pkg/trait/trait_catalog.go, but I think the dependency on https://github.com/gopherjs/gopherjs is going to kill that option.
   
   Instead, we're wondering if there is something we can add in the CLI to expose a list of available traits. 
   
   @nicolaferraro mentioned this:
   
   > if you run . <(kamel completion bash) (or zsh) on a bash shell you get suggestions on the available traits an related properties when you hit tab.. but we can provide a more user-friendly way to document them in the CLI if you think it can improve the ux.
   > Even a `kamel trait list` command
   
   Ultimately I think that's what we're after. It would be great if the results of that command would list the name of the trait, the type of value it takes, and any possible values (especially if it's not just a boolean value). Something we could parse and filter for the user would be great.

----------------------------------------------------------------
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


With regards,
Apache Git Services

[GitHub] [camel-k] astefanutti closed issue #1203: Offer easier access to trait list

Posted by GitBox <gi...@apache.org>.
astefanutti closed issue #1203: Offer easier access to trait list
URL: https://github.com/apache/camel-k/issues/1203
 
 
   

----------------------------------------------------------------
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


With regards,
Apache Git Services