-
Notifications
You must be signed in to change notification settings - Fork 12
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
Don't use JBang runner for examples #132
Comments
You do not need to use jbang to run the examples, the first section in examples docs shows exactly that:
But, Java is an implementation detail of qDup. We can not assume that users of qDup are java users, or maven users, or have java toolset installed in their machines. using jbang, users do not need to learn how to download java, install java, build a java proejct etc, they just have a one-line command that installs a JVM for them if it is missing, downloads the qDup maven artefacts and executes the qDup script. This happens without them having to know anything about Java jbang fetching an older version of qDup is an issue and it should be using the latest release |
Anywhere I've seen qDup used it's used directly (in the user guide as well); we should not recommend a tool (the runner) that we don't use ourselves. That approach leads to different UX and problems as the old version being used. Having |
I don't agree with this statement. in order to set up an environment a user needs to
There is nothing stopping you, as a Java developer, invoking the jar directly. But for users we shouldn't expect them to have any knowledge of the Java runtime, it is a distraction for their learning. We need to put ourselves in the position of someone new to qDup, who does not have any Java experience, their aim is to run a qDup script. Just because we always written documentation assuming that we are writing for Java devs, we shouldn't continue to make that assumption, esp if we want non-java users to use qDup (and there are a lot of non-Java users) |
I suppose my point is, leaving it as is does not impact your use of the tool. But taking it out makes life more difficult for a new user |
I checked the jbang script with the
Do you see an error message? |
Ouch, mea culpa - I had an older version of qDup checked out. It really works, even with 0.6.15 as the last version. |
I was also thinking about the possibility to expose the script as jbang alias, so a user could run
That way they would not need anything pre-installed (even java), they would not even have to clone the repo |
I don't like that the examples are running through another runner using JBang.
java -jar qDup.jar
should be just enough - if you need it e.g. to obtain username, rather than reading it from system properties in the runner you should support${{SYS.user.name}}
as the default.IIUC JBang does not even run qDup in the current dir but instead fetches qDup 0.6.12
The text was updated successfully, but these errors were encountered: