Replies: 3 comments 1 reply
-
/cc @ebullient (picocli) |
Beta Was this translation helpful? Give feedback.
-
I have a feeling you've fallen into (or are not avoiding) the setup/creation of Camel's default handler. Remember that Quarkus extensions do more than just configure what you'd need to run things natively: extensions also do a lot of auto-configuration of beans, etc. Which extensions do you have enabled? A subset of your project (enough to illustrate the problem), would really help. In the meanwhile, I have a PicoCLI app that also uses Camel here: https://github.com/ebullient/pockets-cli. I'm using Camel directly, but only sometimes, so I've done some things explicitly to control when and how Camel starts, so you may be able to find what you need by poking around in there. |
Beta Was this translation helpful? Give feedback.
-
If you haven't provided an alternate main, the default Camel main will register itself:
Note the enabled extensions (based on dependencies):
You need to provide a main class for your CLI that uses the In pockets, I set the following (to slim down startup activity):
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys;
I wasnt sure where to put this question as it has many parts... but I like this community :)
I am using quarkus to build a command-line application using picocli.
my application uses also gson and jsonpath libs. I found both libs in the camel quarkus extensions module and figured its better to use these extensions rather than just adding them as dependencies in the build file.
everything until now works nice functionally.
the only thing I dont like visually is when invoking the application. it will show first the camel quarkus help (which is long) and only then is will show the actual quarkus picocli app output (which Is the only thing I want to see). moreover, when invoking the picocli quarkus app with the needed commands, camel quarkus will show its help first, along with a warning that the command is unknown but the app will then launch properly and output the proper data
I guess my questions are:
your help is appreciated
here is an output when app is used with proper commands:
the last line with the ***[55] is actually the only line i expected , not the whole camel thing.
here is the output when invoking help:
Beta Was this translation helpful? Give feedback.
All reactions