Skip to content

Commit b750994

Browse files
authored
Clearly state the operating system and architecture in the search result (#716)
* Clearly state the operating system and architecture in the search results * fixed format
1 parent c762f1f commit b750994

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/krew/cmd/search.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package cmd
1616

1717
import (
18+
"fmt"
1819
"os"
1920
"runtime"
2021
"strings"
@@ -106,7 +107,7 @@ Examples:
106107
} else if ok {
107108
status = "no"
108109
} else {
109-
status = "unavailable on " + runtime.GOOS
110+
status = fmt.Sprintf("unavailable on %v/%v", runtime.GOOS, runtime.GOARCH)
110111
}
111112

112113
rows = append(rows, []string{displayName(v.p, v.indexName), limitString(v.p.Spec.ShortDescription, 50), status})

0 commit comments

Comments
 (0)