Skip to content

Commit 75b04cc

Browse files
scala-cli script for development (#420)
* `scala-cli` script for development For scala-cli developers. Useful if you need a scala-cli exec that builds and runs code * Update scala-cli-src Co-authored-by: Alexandre Archambault <[email protected]> * Update scala-cli-src Co-authored-by: Alexandre Archambault <[email protected]> * set -e Co-authored-by: Alexandre Archambault <[email protected]>
1 parent 0d79305 commit 75b04cc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,9 @@ To debug failing document, Sclicheck has build-in following options: `--step` (s
165165

166166
## Scala CLI logos
167167

168-
Package with various logos for scala-cli can be found on [google drive](https://drive.google.com/drive/u/1/folders/1M6JeQXmO4DTBeRBKAFJ5HH2p_hbfQnqS)
168+
Package with various logos for scala-cli can be found on [google drive](https://drive.google.com/drive/u/1/folders/1M6JeQXmO4DTBeRBKAFJ5HH2p_hbfQnqS)
169+
170+
## Launcher script
171+
172+
There is a script `scala-cli-src` in the repository root that is intended to work exactly like released scala-cli, but using a binary compiled the worktree.
173+
Just add it to your PATH to get the already-released-scala-cli experience.

scala-cli-src

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
4+
ROOT_DIR="$SCRIPT_DIR"
5+
(
6+
cd "$ROOT_DIR" || exit
7+
./mill cli.standaloneLauncher
8+
)
9+
exec "$ROOT_DIR/out/cli/standaloneLauncher/dest/launcher" "$@"

0 commit comments

Comments
 (0)