Add internal/kubeexec wrapper and cmd/kctl-tui entrypoint (main, full mode)

This commit is contained in:
Stefan Koelle
2026-08-09 11:22:15 +02:00
parent dc8bcc555f
commit 96ec9d2e1a
4 changed files with 199 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package main
import "github.com/skoelle/kctl-tui/internal/kctl"
func distinctLabelValues(namespaces map[string]map[string]string, labelKey string) []string {
return kctl.DistinctLabelValues(namespaces, labelKey)
}
func namespacesForLabelValue(namespaces map[string]map[string]string, labelKey, value string) []string {
return kctl.NamespacesForLabelValue(namespaces, labelKey, value)
}
func findNextContext(current string, pairs []kctl.ContextPair) (string, bool) {
return kctl.FindNextContext(current, pairs)
}