cmd/version: display list of columns that can be enabled or removed

This commit is contained in:
Vincent Bernat
2023-01-19 19:14:04 +01:00
parent 72d51d0512
commit 4d30445099
3 changed files with 29 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ func TestVersion(t *testing.T) {
fmt.Sprintf(" Built with: %s", runtime.Version()),
"",
}
got := strings.Split(buf.String(), "\n")
got := strings.Split(buf.String(), "\n")[:len(want)]
if diff := helpers.Diff(got, want); diff != "" {
t.Errorf("`version` (-got, +want):\n%s", diff)
}