2024-10-12 01:28:22 +09:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
"fmt"
|
2024-11-02 03:03:44 +09:00
|
|
|
|
|
|
|
"git.ophivana.moe/security/fortify/internal"
|
2024-10-12 01:28:22 +09:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
printVersion bool
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
flag.BoolVar(&printVersion, "V", false, "Print version")
|
|
|
|
}
|
|
|
|
|
|
|
|
func tryVersion() {
|
|
|
|
if printVersion {
|
2024-11-02 03:03:44 +09:00
|
|
|
if v, ok := internal.Check(internal.Version); ok {
|
|
|
|
fmt.Println(v)
|
|
|
|
} else {
|
|
|
|
fmt.Println("impure")
|
|
|
|
}
|
2024-10-12 01:28:22 +09:00
|
|
|
os.Exit(0)
|
|
|
|
}
|
|
|
|
}
|