github charmbracelet/bubbletea v0.12.4

latest releases: v0.26.1, v0.26.0, v0.25.0...
3 years ago

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.

The Charm logo

Don't miss a new bubbletea release

NewReleases is sending notifications on new releases.