scala-cli
scala-cli copied to clipboard
//> using file directives should allow URLs and git repository paths
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.