Skip to content

v0.12.4

Compare
Choose a tag to compare
@meowgorithm meowgorithm released this 18 Jan 17:25
· 506 commits to master since this release

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