get

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Names = names.Plugins
	Verb  = verbs.Get
)

Functions

func Describe

func Describe[E Element[C], C Stringer](elems []E) string

func NewCommand

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

NewCommand creates a new ctf command.

func TableOutput

func TableOutput(opts *output.Options, mapping processing.MappingFunction, wide ...string) *output.TableOutput

Types

type Command

type Command struct {
	utils.BaseCommand

	Names []string
}

func (*Command) Complete

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

func (*Command) ForName

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

func (*Command) Long

func (o *Command) Long() string

func (*Command) Run

func (o *Command) Run() error

type Element

type Element[C Stringer] interface {
	GetName() string
	GetConstraints() []C
}

type Stringer

type Stringer interface {
	String() string
}

Jump to

Keyboard shortcuts

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