Replies: 2 comments
-
That is up to your app - not related to jbang. you mention you use picocli so I suggest you look at https://picocli.info/autocomplete.html to see examples on how to do it. jbang itself use the same mechanics for its commands. |
Beta Was this translation helpful? Give feedback.
-
Here is the error, ...
...
template-maven-java/src/main/java/org/example/Main.java:36: error: cannot find symbol
int systemExit = new CommandLine(new Main()).execute(args);
^
symbol: class CommandLine
location: class Main
template-maven-java/src/main/java/org/example/Main.java:37: error: cannot find symbol
System.out.println(Ints.max(1, 2, 5));
^
symbol: variable Ints
location: class Main
...
... Top of my
I ran the following command, jbang app install --cp target/template-maven-java-1.0-jar-with-dependencies.jar src/main/java/org/example/Main.java Note that in |
Beta Was this translation helpful? Give feedback.
-
Hi,
Is there a way to include jar dependencies directly instead of providing them in
DEPS
?For example, I am creating a
fat-jar
for my java project which has all the dependencies of the project in it. I see there is an option--cp
but if the dependency is itself used in thesourceOrFile
then it throws error.In
Main.java
I am using/importing some of the dependencies present intarget/template-maven-java-1.0-jar-with-dependencies.jar
file.Also once we have installed an app using
jbang app install ...
, is there a way to enable autocomplete for the app.I am using picocli for command line application.
Beta Was this translation helpful? Give feedback.
All reactions