plugin

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(ctx clictx.Context, plugin plugin.Plugin, name string, names ...string) *cobra.Command

NewCommand creates a new plugin based command.

Types

type Command

type Command struct {
	utils.BaseCommand
	// contains filtered or unexported fields
}

func (*Command) AddFlags

func (o *Command) AddFlags(set *pflag.FlagSet)

func (*Command) Complete

func (o *Command) Complete(args []string) error

func (*Command) ForName

func (o *Command) ForName(name string) *cobra.Command

func (*Command) Run

func (o *Command) Run() error

Jump to

Keyboard shortcuts

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