Help us shape the future of Go! Take the 2026 Go Developer Survey

list

package
v1.19.26 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootCmd

func RootCmd(opts *options.Options) *cobra.Command

Types

type CommandOverrideVerifier

type CommandOverrideVerifier struct {
	// contains filtered or unexported fields
}

func (*CommandOverrideVerifier) Verify

func (v *CommandOverrideVerifier) Verify(path, binName string) []error

Verify implements PathVerifier and determines if a given path is valid depending on whether or not it overwrites an existing glooctl command path, or a previously seen plugin.

type PathVerifier

type PathVerifier interface {
	// Verify determines if a given path is valid
	Verify(path, binName string) []error
}

pathVerifier receives a path and determines if it is valid or not

type PluginListOptions

type PluginListOptions struct {
	Verifier PathVerifier
	NameOnly bool

	PluginPaths []string
}

func (*PluginListOptions) Complete

func (o *PluginListOptions) Complete(cmd *cobra.Command) error

func (*PluginListOptions) Run

func (o *PluginListOptions) Run() error

Jump to

Keyboard shortcuts

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