cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 34 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUpdateCommands

func CreateUpdateCommands(registry apis.InstallablePluginRegistry) []*cobra.Command

Create the update command for all registered plugins.

func Execute

func Execute()

func NewCompletionCmd

func NewCompletionCmd() *cobra.Command

NewCmdCompletion creates the `completion` command

func NewInstallCommand

func NewInstallCommand(registry apis.InstallablePluginRegistry) *cobra.Command

func NewRunCommand

func NewRunCommand(registry apis.StartStopPluginRegistry, contextName ContextNameSupplier) *cobra.Command

func NewRunSingleCommand

func NewRunSingleCommand(plugin apis.StartStopPlugin) *cobra.Command

NewRunSingleCommand creates a new run command for the given plugin.

func NewUninstallCommand

func NewUninstallCommand(registry apis.InstallablePluginRegistry) *cobra.Command

func NewUpdateCommand

func NewUpdateCommand(registry apis.InstallablePluginRegistry) *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type ContextNameSupplier

type ContextNameSupplier func() string

type InstallOptions

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

func NewInstallOptions

func NewInstallOptions(registry apis.InstallablePluginRegistry) *InstallOptions

func (*InstallOptions) Run

func (i *InstallOptions) Run(cmd *cobra.Command, args []string)

type PreRunInit

type PreRunInit func(options *RootCommandOptions) error

PreRunInit defines the interface for small helper functions which will perform a late initialization of some already initialized object instances.

type RootCommandOptions

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

RootCommandOptions stores the the values for global command flags like the kubeconfig and context name.

func NewRootCmd

func NewRootCmd() (*cobra.Command, *RootCommandOptions)

NewRootCmd initializes the root cobra command including all the flags on root level.

func NewRootCmdOptions

func NewRootCmdOptions() *RootCommandOptions

NewRootCmdOptions creates a new option structure for the the root cli command.

func (*RootCommandOptions) AddPreRunInitFunction

func (o *RootCommandOptions) AddPreRunInitFunction(f PreRunInit)

AddPreRunInitFunction adds a new PreRunInit function to the list for preRun()

type RunOptions

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

func NewRunOptions

func NewRunOptions(registry apis.StartStopPluginRegistry, contextName ContextNameSupplier) *RunOptions

func (*RunOptions) Layout

func (i *RunOptions) Layout(gui *gocui.Gui) error

func (*RunOptions) Run

func (i *RunOptions) Run(_ *cobra.Command, _ []string)

type RunSingleOptions

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

RunSingleOptions contains all options and information that are needed to run a single plugin from the command line.

func NewRunSingleOptions

func NewRunSingleOptions(plugin apis.StartStopPlugin) *RunSingleOptions

NewRunSingleOptions create a new instance of the RunSingleOptions for the given plugin.

func (*RunSingleOptions) Run

func (i *RunSingleOptions) Run(_ *cobra.Command, _ []string)

Run starts the plugin and waits for new status messages.

type UninstallOptions

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

func NewUninstallOptions

func NewUninstallOptions(registry apis.InstallablePluginRegistry) *UninstallOptions

func (*UninstallOptions) Run

func (i *UninstallOptions) Run(cmd *cobra.Command, args []string)

type UpdateOptions

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

func NewUpdateOptions

func NewUpdateOptions(registry apis.InstallablePluginRegistry) *UpdateOptions

func (*UpdateOptions) Run

func (i *UpdateOptions) Run(cmd *cobra.Command, args []string)

type VersionOptions

type VersionOptions struct{}

func NewVersionOptions

func NewVersionOptions() *VersionOptions

Jump to

Keyboard shortcuts

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