1
0
forked from JOJ/JOJ3

feat(cmd/joj3): no log on print version

This commit is contained in:
张泊明518370910136 2025-06-28 09:27:59 -04:00
parent e45277b876
commit b6592e655d
Signed by untrusted user: 张泊明518370910136
GPG Key ID: D47306D7062CDA9D

View File

@ -162,7 +162,7 @@ func main() {
slog.Error("main exit", "error", err)
exitCode = 1
}
if exitCode == 0 {
if !*printVersion && exitCode == 0 {
slog.Info("main exit", "status", "success")
}
os.Exit(exitCode)