Skip to content

Commit c670e13

Browse files
authored
Clean up the src version output (#543)
The output of `src version` uses inconsistent capitalization of "version", and the recommended version can sometimes be a downgrade compared to what is actually installed. The changes in this PR are to: - standardize on lower-case `v` in "version" - add `or later` to output of recommended version Fixes sourcegraph/sourcegraph#16850
1 parent 348c49a commit c670e13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/src/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ Examples:
3434
return err
3535
}
3636
if recommendedVersion == "" {
37-
fmt.Println("Recommended Version: <unknown>")
37+
fmt.Println("Recommended version: <unknown>")
3838
fmt.Println("This Sourcegraph instance does not support this feature.")
3939
return nil
4040
}
41-
fmt.Printf("Recommended Version: %s\n", recommendedVersion)
41+
fmt.Printf("Recommended version: %s or later\n", recommendedVersion)
4242
return nil
4343
}
4444

0 commit comments

Comments
 (0)