descriptor

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(o output.OutputInterface, content string, decorated bool)

Types

type ApplicationDescription

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

func NewApplicationDescription

func NewApplicationDescription(application DescribeableApplication, namespace string, showHidden bool) *ApplicationDescription

func (*ApplicationDescription) Command

func (d *ApplicationDescription) Command(name string) (*command.Command, error)

func (*ApplicationDescription) Commands

func (d *ApplicationDescription) Commands() map[string]*command.Command

func (*ApplicationDescription) Namespaces

func (d *ApplicationDescription) Namespaces() map[string]*NamespaceCommands

type DescribeableApplication

type DescribeableApplication interface {
	All(namespace string) map[string]*command.Command
	ExtractNamespace(name string, limit int) string
	FindNamespace(namespace string) (string, error)
	Help() string
	Definition() *input.InputDefinition
}

type DescriptorInterface

type DescriptorInterface interface {
	Describe(output output.OutputInterface, options DescriptorOptions)
}

type DescriptorOptions

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

func NewDescriptorOptions

func NewDescriptorOptions(namespace string, rawText bool, short bool, totalWidth int) *DescriptorOptions

type NamespaceCommands

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

type TextDescriptor

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

func NewTextDescriptor

func NewTextDescriptor(output output.OutputInterface) *TextDescriptor

func (*TextDescriptor) DescribeApplication

func (d *TextDescriptor) DescribeApplication(app DescribeableApplication, options *DescriptorOptions)

func (*TextDescriptor) DescribeCommand

func (d *TextDescriptor) DescribeCommand(command *command.Command, options *DescriptorOptions)

func (*TextDescriptor) DescribeInputArgument

func (d *TextDescriptor) DescribeInputArgument(argument *input.InputArgument, options *DescriptorOptions)

func (*TextDescriptor) DescribeInputDefinition

func (d *TextDescriptor) DescribeInputDefinition(definition *input.InputDefinition, options *DescriptorOptions)

func (*TextDescriptor) DescribeInputOption

func (d *TextDescriptor) DescribeInputOption(option *input.InputOption, options *DescriptorOptions)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳