// Package repl implements the main event loop. package repl import ( "fmt" "os" "git.lyda.ie/kevin/bulletin/dclish" ) // ActionQuit handles the `QUIT` command. func ActionQuit(_ *dclish.Command) error { // TODO: IIRC, quit should not update unread data. Check old code to confirm. fmt.Println("QUIT") os.Exit(0) return nil } // ActionExit handles the `EXIT` command. func ActionExit(_ *dclish.Command) error { // TODO: update unread data. fmt.Println("EXIT") os.Exit(0) return nil }