mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
refactor to move kubectl.cmd.Factory to kubect/cmd/util
This commit is contained in:
@@ -27,6 +27,7 @@ import (
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd"
|
||||
clientcmdapi "github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd/api"
|
||||
cmdutil "github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd/util"
|
||||
)
|
||||
|
||||
type pathOptions struct {
|
||||
@@ -36,7 +37,7 @@ type pathOptions struct {
|
||||
specifiedFile string
|
||||
}
|
||||
|
||||
func NewCmdConfig(out io.Writer) *cobra.Command {
|
||||
func NewCmdConfig(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
||||
pathOptions := &pathOptions{}
|
||||
|
||||
cmd := &cobra.Command{
|
||||
|
||||
Reference in New Issue
Block a user