You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
296 B
25 lines
296 B
5 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
version string
|
||
|
commit string
|
||
|
builtAt string
|
||
|
builtBy string
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
if os.Args[1] == "-version" {
|
||
|
fmt.Fprintf(os.Stderr, versionS()+"\n")
|
||
|
os.Exit(0)
|
||
|
}
|
||
|
if err := rootCmd.Execute(); err != nil {
|
||
|
fmt.Println(err)
|
||
|
os.Exit(-1)
|
||
|
}
|
||
|
}
|