Add version command

This commit is contained in:
Max Jonas Werner
2026-04-09 09:25:10 +02:00
parent 7af1dd5db5
commit 7cabca2ade
2 changed files with 91 additions and 0 deletions
+3
View File
@@ -6,6 +6,7 @@ import (
"os"
"time"
"gitea.e13.dev/e13/kubectl-unready/cmd/version"
"github.com/spf13/cobra"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -35,6 +36,8 @@ func NewUnreadyCmd(ctx context.Context) *cobra.Command {
cmd.Flags().BoolVarP(&allNamespacesFlag, "all-namespaces", "A", false, "If present, list unready pods across all namespaces.")
cmd.AddCommand(version.NewVersionCmd(ctx))
return cmd
}