root

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSubCommandNames

func ExtractSubCommandNames(cmds []*cobra.Command) []string

ExtractSubCommandNames extracts the names of all sub commands of a given command

func GetBinaryName added in v0.30.0

func GetBinaryName() string

GetBinaryName returns the actual binary name of the kn cli for example /usr/bin/kn1 service list would return kn1 kn service list would return kn mykn service list would return mykn

func NewRootCommand

func NewRootCommand(helpFuncs *template.FuncMap) (*cobra.Command, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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