/scala-interactive-update

Update your Scala dependencies interactively

Primary LanguageScala

scala-interactive-update

Update your Scala dependencies (both libraries and plugins) interactively. Video Demo.

Installation

  1. Build the native image with show graalvm-native-image:packageBin.
sbt 'show graalvm-native-image:packageBin'
# [info] ~/code/sbt-interactive-update/target/graalvm-native-image/scala-interactive-update
  1. Move the generated binary onto your PATH.

Usage

Run the binary from within an sbt project folder.

scala-interactive-update

CleanShot 2022-06-27 at 09 15 23@2x

The commands are displayed at the bottom of the interactive output.

Select the libraries you wish to update, then hit Enter to update your build files to the selected versions.

CleanShot 2022-06-27 at 09 15 53@2x

Grouped Depenendcies

If multiple dependencies share a single version, they will be grouped.

CleanShot 2022-06-27 at 09 18 15@2x

Multiple Versions

If a dependency has multiple possible update version—for instance, a new major version and a new minor version—then you can select which version to upgrade to.

CleanShot 2022-06-27 at 09 20 23@2x

FAQ

How did you make the interactive CLI?

I have another library, zio-tui, for creating interactive command line interactive programs just like this one.