Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

jbang integration #563

Open
jponge opened this issue Oct 23, 2020 · 1 comment
Open

jbang integration #563

jponge opened this issue Oct 23, 2020 · 1 comment

Comments

@jponge
Copy link
Contributor

jponge commented Oct 23, 2020

Golo offers scripting / shebang support, and resolves other Golo modules and jar dependencies by scanning the filesystem.

Another (complementary) approach would be to offer jbang integration so that we could specify dependencies in Golo files, like this non-prescriptive example:

# DEPS io.vertx:core:3.9.4
module hello

import io.vertx.core.Vertx

function main = |args| {
  let vertx = Vertx()
  vertx: setPeriodic(1000L, |tick| -> println("tick"))
}

Wether this should be done by contributing to jbang or providing some helper (...jbang script? catalog?) on the Golo side remains to be investigated.

@jponge
Copy link
Contributor Author

jponge commented Oct 23, 2020

/cc @maxandersen FYI

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant