release notes
release notes
Published 1/18/2021
PatchSafe upgradeThis 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.
release notes
Published 1/18/2021
PatchSafe upgradeThis 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.