CLI is a command line target for FSM.
This is an ideal target for conversational interface development.
package main
import (
"github.com/fsm/cli"
"github.com/fsm/fsm"
)
func main() {
cli.Start(getStateMachine(), getStore())
}
func getStateMachine() fsm.StateMachine {
// ...
}
func getStore() fsm.Store {
// ...
}