Chapter 10. Automating workflows with commands

This chapter covers

  • A simple release command
  • Improving discoverability of a command with help messages
  • Chaining actions in a command
  • Using custom tasks in the release script
  • Custom parsing with commands

Sometimes executing one task isn’t enough; there are several things that need to happen. Rather than creating an external script file that can run sbt more than once, sbt provides a commands API that can be used to create workflows that go beyond doing one thing. Let’s start with an example.

Throughout the chapter, you’ll work on the release script for the preowned-kittens website. This script involves a lot of different components, and you’d like it to be as simple as release 1.0 for your ...

Get sbt in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.