gophernotes/main.go

28 lines
425 B
Go
Raw Permalink Normal View History

package main
import (
2016-01-23 13:48:33 -06:00
"flag"
"log"
)
2017-09-20 11:53:36 -04:00
const (
// Version defines the gophernotes version.
Version string = "1.0.0"
// ProtocolVersion defines the Jupyter protocol version.
ProtocolVersion string = "5.0"
)
func main() {
2016-01-23 13:48:33 -06:00
2017-07-22 16:49:22 -04:00
// Parse the connection file.
2016-01-23 13:48:33 -06:00
flag.Parse()
if flag.NArg() < 1 {
2017-07-22 16:49:22 -04:00
log.Fatalln("Need a command line argument specifying the connection file.")
2016-01-23 13:48:33 -06:00
}
2017-07-22 16:49:22 -04:00
// Run the kernel.
runKernel(flag.Arg(0))
}