Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Let's check out Clikt

BrianPlummer
November 20, 2019

Let's check out Clikt

Let's check out Clikt, the "Command Line Interface for Kotlin". It is a popular open source library that provides command line tooling for Kotlin! It has a rich feature set that I will explain and go over in this talk.

BrianPlummer

November 20, 2019
Tweet

More Decks by BrianPlummer

Other Decks in Programming

Transcript

  1. And much much more •Choice / Mutually Exclusive / Eager

    /……Options •Documenting / Formatting •Token normalization / Replacing stdin/stdout •Launch Editor / Bash Autocomplete •Exception Handing
  2. Why not a Kotlin lib like kotlin-argparse or kotlinx.cli? •Lack

    of subcommand, though that has changed •Not nearly as feature rich •Clikt tries to be consistent and intuitive •Clikt is JVM based
  3. We can now •Isolate the legacy code •Better control on

    legacy code invocation •Build new features on our terms •Refactor and pull code into Kotlin
  4. StranglerFig Application •Martin Fowler ~ 2004 •Create new system around

    the old •Gradually move functionality to new •Less risky way to replace