fix: complete hardware collection diagnostics
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user