mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:42:07 +02:00

* scala-cli: add page * scala-cli: fix link to docs Co-authored-by: pixel <pixel+github@chrissx.de> * scala-cli: fix path to script Co-authored-by: pixel <pixel+github@chrissx.de> * scala-cli: fix path to script Co-authored-by: pixel <pixel+github@chrissx.de> * scala-cli: fix path to script Co-authored-by: pixel <pixel+github@chrissx.de> * scala-cli: fix path to script Co-authored-by: pixel <pixel+github@chrissx.de> * scala-cli: update description Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * scala-cli: update format command description --------- Co-authored-by: pixel <pixel+github@chrissx.de> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
24 lines
624 B
Markdown
24 lines
624 B
Markdown
# scala-cli
|
|
|
|
> Tool to interact with the Scala programming language.
|
|
> More information: <https://scala-cli.virtuslab.org/docs/overview/>.
|
|
|
|
- Start a REPL (interactive shell) using a specific Scala and JVM version:
|
|
|
|
`scala-cli --scala {{3.1.0}} --jvm {{temurin:17}}`
|
|
|
|
- Compile and run a Scala script:
|
|
|
|
`scala-cli run {{path/to/script.scala}}`
|
|
|
|
- Compile and test a Scala script:
|
|
|
|
`scala-cli test {{path/to/script.scala}}`
|
|
|
|
- Format a Scala script, updating the file in-place:
|
|
|
|
`scala-cli fmt {{path/to/script.scala}}`
|
|
|
|
- Generate files for IDE (VSCode and IntelliJ) support:
|
|
|
|
`scala-cli setup-ide {{path/to/script.scala}}`
|