diff --git a/cmd/root.go b/cmd/root.go index 7d0690d..b0cd276 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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 diff --git a/cmd/version.go b/cmd/version.go index 9056b24..0c5b458 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -44,7 +44,7 @@ var versionCMD = &cobra.Command{ } render = append(render, output.VersionRender{ - Component: "KKP API", + Component: "kkp api", Version: versions["api"], }) }, diff --git a/pkg/output/output_version.go b/pkg/output/output_version.go index f8bcb42..bef6778 100644 --- a/pkg/output/output_version.go +++ b/pkg/output/output_version.go @@ -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