Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
make version output nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Kienzler committed Jul 13, 2021
1 parent e05da48 commit f869ad7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
// Commit represents the Commit-hash from which kkpctl binary was build, should be set via ldflags -X
Commit string

// BuildBy represents who build the binary, should be set via ldflags -X
// BuiltBy represents who build the binary, should be set via ldflags -X
BuiltBy string

configPath string
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var versionCMD = &cobra.Command{
}

render = append(render, output.VersionRender{
Component: "KKP API",
Component: "kkp api",
Version: versions["api"],
})
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/output/output_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (r VersionRender) ParseCollection(inputObj interface{}, output string, sort

case Text:
sort.Slice(objects, func(i, j int) bool {
return objects[j].Component > objects[i].Component
return objects[j].Component < objects[i].Component
})

var bodyBuf io.ReadWriter
Expand Down

0 comments on commit f869ad7

Please sign in to comment.