mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:05:59 +02:00
kotlinc: add page (#7006)
This commit is contained in:
parent
e2e34c5bd1
commit
2f00e0732e
1 changed files with 24 additions and 0 deletions
24
pages/common/kotlinc.md
Normal file
24
pages/common/kotlinc.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# kotlinc
|
||||
|
||||
> Kotlin compiler.
|
||||
> More information: <https://kotlinlang.org/docs/command-line.html>.
|
||||
|
||||
- Start a REPL (interactive shell):
|
||||
|
||||
`kotlinc`
|
||||
|
||||
- Compile a Kotlin file:
|
||||
|
||||
`kotlinc {{path/to/file.kt}}`
|
||||
|
||||
- Compile several Kotlin files:
|
||||
|
||||
`kotlinc {{path/to/file1.kt path/to/file2.kt ...}}`
|
||||
|
||||
- Execute a specific Kotlin Script file:
|
||||
|
||||
`kotlinc -script {{path/to/file.kts}}`
|
||||
|
||||
- Compile a Kotlin file into a self contained jar file with the Kotlin runtime library included:
|
||||
|
||||
`kotlinc {{path/to/file.kt}} -include-runtime -d {{path/to/file.jar}}`
|
Loading…
Add table
Reference in a new issue