cmdtree

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 68 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvironmentSetupGroup = captain.NewCommandGroup(locale.Tl("group_environment_setup", "Environment Setup"), 10)
	EnvironmentUsageGroup = captain.NewCommandGroup(locale.Tl("group_environment_usage", "Environment Usage"), 9)
	ProjectUsageGroup     = captain.NewCommandGroup(locale.Tl("group_project_usages", "Project Usage"), 8)
	PackagesGroup         = captain.NewCommandGroup(locale.Tl("group_packages", "Package Management"), 7)
	PlatformGroup         = captain.NewCommandGroup(locale.Tl("group_tools", "Platform"), 6)
	VCSGroup              = captain.NewCommandGroup(locale.Tl("group_vcs", "Version Control"), 5)
	AutomationGroup       = captain.NewCommandGroup(locale.Tl("group_automation", "Automation"), 4)
	UtilsGroup            = captain.NewCommandGroup(locale.Tl("group_utils", "Utilities"), 3)
	AuthorGroup           = captain.NewCommandGroup(locale.Tl("group_author", "Author"), 6)
)

Group instances are used to group command help output.

Functions

This section is empty.

Types

type CmdTree

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

CmdTree manages a tree of captain.Command instances.

func New

func New(prime *primer.Values, args ...string) *CmdTree

New prepares a CmdTree.

func (*CmdTree) Command

func (ct *CmdTree) Command() *captain.Command

Command returns the root command of the CmdTree

func (*CmdTree) Execute

func (ct *CmdTree) Execute(args []string) error

Execute runs the CmdTree using the provided CLI arguments.

func (*CmdTree) OnExecStart

func (ct *CmdTree) OnExecStart(handler captain.ExecEventHandler)

func (*CmdTree) OnExecStop

func (ct *CmdTree) OnExecStop(handler captain.ExecEventHandler)

Directories

Path Synopsis
exechandlers

Jump to

Keyboard shortcuts

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