...

Package initcmd

import "sigs.k8s.io/cli-utils/cmd/initcmd"
Overview
Index

Overview ▾

func NewCmdInit

func NewCmdInit(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdInit returns the cobra command for the init command.

type InitRunner

InitRunner encapsulates the structures for the init command.

type InitRunner struct {
    Command     *cobra.Command
    InitOptions *config.InitOptions
}

func GetInitRunner

func GetInitRunner(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *InitRunner

GetInitRunner builds and returns the InitRunner. Connects the InitOptions.Run to the cobra command.