scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

//> using file directives should allow URLs and git repository paths

Open benwbooth opened this issue 3 years ago • 0 comments

It would be useful if the //> using file directives could accept URL and git repository paths in addition to local files. This would allow users to refer to their scala-cli module scripts from their executable scripts, no matter what paths the executable scripts were stored in:

//> using file "git+ssh://[email protected]/benwbooth/scala-scripts.git?dir=lib/scriptdir/my-script.sc"

or

//> using file "https://raw.githubusercontent.com/benwbooth/scala-scripts/lib/scriptdir/my-script.sc"

Deno has a similar feature for pulling in dependencies from URLs.

benwbooth avatar Sep 07 '22 14:09 benwbooth