This mini-release adds the tea.Sequentially
helper command, which is useful for executing several commands in order. For example, maybe you want to save and quit, but only if the save was successful:
func saveStateCmd() Msg {
if err := save(); err != nil {
return errMsg{err}
}
return nil
}
cmd := Sequentially(saveStateCmd, Quit)
For details, see the docs.
Thoughts? Questions? Feel free to reach out on Twitter and The Fediverse.