Skip to content
Snippets Groups Projects
Select Git revision
  • 561977c3c4a49d99ce7e6369d0de75af25320211
  • release default protected
  • more-testing
  • attempt-vax90b1
  • attempt-1
  • conversion protected
  • linux
  • v0.9.1 protected
  • v0.9.0 protected
9 results

misc.go

Blame
  • misc.go 500 B
    // 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
    }