forked from DNSControl/dnscontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
25 lines (21 loc) · 909 Bytes
/
Copy pathmain.go
File metadata and controls
25 lines (21 loc) · 909 Bytes
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
package main
import (
"fmt"
"os"
"runtime/debug"
"github.com/DNSControl/dnscontrol/v4/commands"
_ "github.com/DNSControl/dnscontrol/v4/pkg/providers/_all"
_ "github.com/DNSControl/dnscontrol/v4/pkg/rtype"
"github.com/DNSControl/dnscontrol/v4/pkg/version"
"github.com/fatih/color"
)
//go:generate go run build/generate/generate.go build/generate/featureMatrix.go build/generate/functionTypes.go build/generate/dtsFile.go build/generate/ownersFile.go build/generate/goreleaserFile.go
func main() {
if os.Getenv("CI") == "true" {
color.NoColor = false
}
if info, ok := debug.ReadBuildInfo(); !ok && info == nil {
fmt.Fprint(os.Stderr, "Warning: dnscontrol was built without Go modules. See https://docs.dnscontrol.org/getting-started/getting-started#source for more information on how to build dnscontrol correctly.\n\n")
}
os.Exit(commands.Run("DNSControl version " + version.Version()))
}