|
|
|
@ -28,15 +28,14 @@ import (
|
|
|
|
|
"github.com/toolkits/pkg/runner"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// changelog:
|
|
|
|
|
// 1: init project
|
|
|
|
|
// 2: mount ignore refactor
|
|
|
|
|
const version = 2
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
vers *bool
|
|
|
|
|
help *bool
|
|
|
|
|
conf *string
|
|
|
|
|
|
|
|
|
|
version = "No Version Provided"
|
|
|
|
|
gitHash = "No GitHash Provided"
|
|
|
|
|
buildTime = "No BuildTime Provided"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
@ -46,7 +45,9 @@ func init() {
|
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
|
|
if *vers {
|
|
|
|
|
fmt.Println("version:", version)
|
|
|
|
|
fmt.Println("Version:", version)
|
|
|
|
|
fmt.Println("Git Commit Hash:", gitHash)
|
|
|
|
|
fmt.Println("UTC Build Time:", buildTime)
|
|
|
|
|
os.Exit(0)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|