netcaptain/cmd/ncpt/main.go

24 lines
267 B
Go
Raw Normal View History

2020-10-09 20:45:04 +00:00
package main
import (
"fmt"
"os"
)
const (
AppName = "netcaptain"
AppVersion = 1
)
var app *AppState
func main() {
fmt.Println("ncpt - NetCaptain")
app = NewApp()
if app.Error != nil {
PrintErr(app.Error.Error())
os.Exit(1)
}
os.Exit(app.run())
}