command

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandAlias

type CommandAlias struct {
	Name string
}

type CommandBuilder

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

func NewCommandBuilder

func NewCommandBuilder(filePath string, data *CommandData) *CommandBuilder

func (*CommandBuilder) Build

func (cb *CommandBuilder) Build() error

func (*CommandBuilder) Execute

func (cb *CommandBuilder) Execute() error

type CommandData

type CommandData struct {
	SourceHeaderLicense string
	CommandName         string
	PackageName         string
	Short               string
	Long                string
	Children            []CommandDataChildren
	Flags               []CommandFlag
	Aliases             []CommandAlias
}

type CommandDataChildren

type CommandDataChildren struct {
	Name    string
	DefPath string
}

type CommandFlag

type CommandFlag struct {
	Name         string
	UpperType    string
	Type         string
	DefaultValue string
	Description  string
}

Jump to

Keyboard shortcuts

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