Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDescriptorNotFound = errors.New("descriptor not found")
Functions ¶
func Descriptors ¶
func Descriptors() []string
func Register ¶
func Register(name string, descriptor Descriptor)
Types ¶
type Commands ¶
type Commands struct { Namespace string Definition *input.Definition Commands []NSCommand }
type Descriptor ¶
type Descriptor interface { Command(ctx context.Context, out output.Output, cmd Command) error Commands(ctx context.Context, out output.Output, cmds Commands) error }
func Find ¶
func Find(name string) (Descriptor, error)
type NSCommand ¶
type NSCommand struct { Name string Commands []ShortCommand }
type ShortCommand ¶
Click to show internal directories.
Click to hide internal directories.