Skip to content

Commit

Permalink
Merge pull request #1379 from rsteube/minikube-kubectl
Browse files Browse the repository at this point in the history
minikube: bridge kubectl for dash args
  • Loading branch information
rsteube authored Oct 20, 2022
2 parents 27b1e5f + ea8ad63 commit f1ba2bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions completers/minikube_completer/cmd/kubectl.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/bridge"
"github.com/spf13/cobra"
)

Expand All @@ -13,4 +15,8 @@ var kubectlCmd = &cobra.Command{
func init() {
kubectlCmd.Flags().Bool("ssh", false, "Use SSH for running kubernetes client on the node")
rootCmd.AddCommand(kubectlCmd)

carapace.Gen(kubectlCmd).DashAnyCompletion(
bridge.ActionCarapaceBin("kubectl"),
)
}

0 comments on commit f1ba2bb

Please sign in to comment.