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 ...