2020-10-09 20:45:04 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
2020-10-14 21:59:41 +00:00
|
|
|
|
|
|
|
"git.bullercodeworks.com/brian/netcaptain/internal/cli"
|
2020-10-09 20:45:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
AppName = "netcaptain"
|
|
|
|
AppVersion = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
var app *AppState
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
app = NewApp()
|
|
|
|
if app.Error != nil {
|
2020-10-14 21:59:41 +00:00
|
|
|
cli.PrintErr(app.Error.Error())
|
2020-10-09 20:45:04 +00:00
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
os.Exit(app.run())
|
|
|
|
}
|