mirror of
https://github.com/gopherdata/gophernotes.git
synced 2025-04-20 13:46:12 +00:00
28 lines
425 B
Go
28 lines
425 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
"log"
|
|
)
|
|
|
|
const (
|
|
|
|
// Version defines the gophernotes version.
|
|
Version string = "1.0.0"
|
|
|
|
// ProtocolVersion defines the Jupyter protocol version.
|
|
ProtocolVersion string = "5.0"
|
|
)
|
|
|
|
func main() {
|
|
|
|
// Parse the connection file.
|
|
flag.Parse()
|
|
if flag.NArg() < 1 {
|
|
log.Fatalln("Need a command line argument specifying the connection file.")
|
|
}
|
|
|
|
// Run the kernel.
|
|
runKernel(flag.Arg(0))
|
|
}
|