Skip to content

Why is the .java extension mandatory when using jbang init ? #676

Answered by maxandersen
jmini asked this question in Q&A
Discussion options

You must be logged in to vote

Gotcha - the current behaviour is intentional. See https://github.com/jbangdev/jbang#extension-lessnon-java-files-for-cli-plugins

in short - if jbang forced jbang init kubectl-foobar to be kubectl-foobar.java you can't use jbang scripts to allow kubectl foobar since it will be loooking for kubectl-foobar file in the PATH not kubectl-foobar.java

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by quintesse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #644 on January 20, 2021 10:23.