diff options
Diffstat (limited to 'engine')
-rwxr-xr-x | engine | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -5,7 +5,17 @@ set -euo pipefail basedir="$(dirname $0)" jar="$(echo $basedir/module/ri-engine/target/ri-engine-*-fat.jar)" +if [[ ! -r engine_completion ]] +then + echo "Generating completion script" + java --enable-preview \ + -cp "$jar" \ + picocli.AutoComplete \ + io.trygvis.rules.engine.Main +fi + exec java \ --enable-preview \ + --add-opens java.base/java.lang=ALL-UNNAMED \ -jar "$jar" \ "${@}" |