fix: complete hardware collection diagnostics

This commit is contained in:
2026-08-25 17:04:33 +03:00
parent 33ace33de5
commit ccc781856e
19 changed files with 311 additions and 81 deletions
+5
View File
@@ -20,6 +20,7 @@ import (
)
var Version = "dev"
var BuildCommit = "unknown"
func buildLabel() string {
label := strings.TrimSpace(Version)
@@ -92,6 +93,10 @@ func run(args []string, stdout, stderr io.Writer) (exitCode int) {
case "gpu-bandwidth-groups":
return runGPUBandwidthGroups(args[1:], stdout, stderr)
case "version", "--version", "-version":
if len(args) > 1 && args[1] == "--commit" {
fmt.Fprintln(stdout, BuildCommit)
return 0
}
fmt.Fprintln(stdout, Version)
return 0
default: