core

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyAndUnknownSubCommands

func EmptyAndUnknownSubCommands(cmd *cobra.Command)

EmptyAndUnknownSubCommands adds a RunE to all commands that are groups to deal with errors when called with empty or unknown sub command

func InitializeConfig

func InitializeConfig()

InitializeConfig initializes the kubeconfig used by all commands

func NewDefaultKnCommand

func NewDefaultKnCommand() (*cobra.Command, error)

NewDefaultKnCommand creates the default `kn` command with a default plugin handler

func NewDefaultKnCommandWithArgs

func NewDefaultKnCommandWithArgs(rootCmd *cobra.Command,
	pluginHandler plugin.PluginHandler,
	args []string,
	in io.Reader,
	out,
	errOut io.Writer) (*cobra.Command, error)

NewDefaultKnCommandWithArgs creates the `kn` command with arguments

func NewKnCommand

func NewKnCommand(params ...commands.KnParams) *cobra.Command

NewKnCommand creates the rootCmd which is the base command when called without any subcommands

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL