fix: remove testing code, fix version print, change watch conf place

This commit is contained in:
Muyao CHEN
2024-10-02 23:26:42 +02:00
parent 792ee4ebe0
commit e45f4d992f
3 changed files with 8 additions and 16 deletions

View File

@ -41,8 +41,8 @@ func AddFlags(fs *pflag.FlagSet) {
}
func PrintVersion() {
fmt.Printf("%s\n", version.Get().String())
if *doPrint {
fmt.Printf("%s\n", version.Get().String())
os.Exit(0)
}
}