~/talk

Kotlin script and writing command line utilities

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [kotlin]
links:none on file
slides:none on file

Demos show using cotlin script with kotlinc / kotlin wrappers and community keycript, loading JVM APIs to read gradle.properties, bump a version string (1.3 → 1.4 by incrementing minor and zeroing patch) and write the file back — it runs and updates the file. Also uses the click CLI library and Kotlin HTML DSL via main.kts dependencies. Notes: JVM startup adds seconds, compiler plugins (serialization) don’t work out of the box, and script exit codes can be surprising (example: exit code 3).

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:51What is Kotlin script
  3. 4:01Command line interfaces overview
  4. 6:09Kotlin script for CLI tools
  5. 7:14Demo: Running Kotlin script
  6. 10:09Demo: Version bump script
  7. 18:46Demo: Using JDK properties
  8. 21:17Demo: HTML generation with dependencies
  9. 24:11Demo: CLI tool with Kotlin CLI library
  10. 28:59Experience and takeaways
  11. 33:20Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.