Skip to content

Conversation

stuartwdouglas
Copy link
Collaborator

No description provided.

@starksm64 starksm64 merged commit 13c0514 into quarkusio:master Mar 6, 2019
@gsmet gsmet added this to the 0.11.0 milestone Mar 6, 2019
maxandersen pushed a commit to maxandersen/quarkus that referenced this pull request Nov 5, 2022
* feat: Added `--code` option for running literal scripts

The `--code` (or `-c`) option either takes a String argument (using `=`)
that will be taken as a literal script or it can appear without argument
in which case the `scriptOrFile` argument will be assumed to contain a
literal script. In both cases the literal script will be executed in
the same way as if the code was passed on the stdin (that is, the code
will be assumed to be Jshell code unless it obviously is plain Java).
Also allows the `--interactive` option to be used without any script
reference at all.
The shortcut `-i` was added for `--interactive`.

Fixes quarkusio#1242

* docs: Added docs for `--code` code_option

See quarkusio#1242

* test: Added tests for `--code` option

See quarkusio#1242

* fix: fixes handling of `//SOURCES` in ephemeral scripts

This is because Jbang tries to look up those paths relative to the
original script location which in the case of scripts that come from
stdin or from the `--code` option is not available. In those cases we
fall back to using the current working directory.

See quarkusio#1242

* feat: added `--sources` (`-s`) option for adding additional sources

* test: added test for `--sources` option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants