-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Offer easier access to trait list #1220
Conversation
Just thinking out loud, as It could also provide a nice way to get trait documentation from the CLI with |
I did wonder whether Happy to move it and have it as a general |
I think this looks great and whether we go with JSON is perfect and we can just combine the root 'name' with the property 'name' to show the user what all is available. It's a long list of available traits, but I'm hoping we can cache the initial trait json from the cli in the tooling to make it a bit quicker to process. But yes -- this should work well. Thank you! |
@bfitzpat in |
@astefanutti That would be a great way to handle this then -- offering both something user-friendly and tooling-friendly. |
87a509d
to
d8bb406
Compare
Pushed some changes to support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
d8bb406
to
1e85c26
Compare
fixes #1203
Added a new command to list traits and their various config options.
Describe all traits:
kamel describe trait
Describe the prometheus trait:
kamel describe trait prometheus
I've hidden this from users based on the assumption that they can already get at this info via shell completion. Hence the output is in JSON, so that it's easy for tooling to parse / filter.
@bfitzpat Here's an example of the output. Hope that's along the lines of what you need.
Release Note