Skip to content

Commit

Permalink
Clearly state the operating system and architecture in the search res…
Browse files Browse the repository at this point in the history
…ult (kubernetes-sigs#716)

* Clearly state the operating system and architecture in the search results

* fixed format
  • Loading branch information
fleeto authored Sep 14, 2021
1 parent c762f1f commit b750994
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/krew/cmd/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cmd

import (
"fmt"
"os"
"runtime"
"strings"
Expand Down Expand Up @@ -106,7 +107,7 @@ Examples:
} else if ok {
status = "no"
} else {
status = "unavailable on " + runtime.GOOS
status = fmt.Sprintf("unavailable on %v/%v", runtime.GOOS, runtime.GOARCH)
}

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

0 comments on commit b750994

Please sign in to comment.