forked from natesales/pathvector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
34 lines (27 loc) · 801 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"fmt"
"os"
"strings"
log "github.com/sirupsen/logrus"
"github.com/natesales/pathvector/cmd"
)
// Build process flags
var (
version = "devel"
commit = "unknown"
date = "unknown"
)
//go:generate ./docs/generate.sh
func main() {
if //goland:noinspection GoBoolExpressions
version == "devel" || strings.Contains(version, "SNAPSHOT") {
fmt.Fprintln(os.Stderr, `*******************************************************************************
WARNING: This is a development build. It is not recommended for production use.
Please submit any bugs to https://github.com/natesales/pathvector/issues
*******************************************************************************`)
}
if err := cmd.Execute(version, commit, date); err != nil {
log.Fatal(err)
}
}