-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.go
34 lines (30 loc) · 821 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
// Main entry point of the go-make command.
package main
import (
"os"
"github.com/tkrop/go-config/info"
"github.com/tkrop/go-make/internal/make"
)
var (
// Path contains the package path.
Path string
// Version contains the custom version.
Version string
// Build contains the custom build time.
Build string
// Revision contains the custom revision.
Revision string
// Commit contains the custom commit time.
Commit string
// Dirty contains the custom dirty flag.
Dirty string
// Config contains the custom go-make config.
Config string
)
// main is the main entry point of the go-make command.
func main() {
os.Exit(make.Make(os.Stdin, os.Stdout, os.Stderr,
info.New(Path, Version, Revision, Build, Commit, Dirty),
make.GetEnvDefault(make.EnvGoMakeConfig, Config),
".", nil, os.Args...))
}