cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func (*Command) Alias

func (c *Command) Alias() []string

func (*Command) Args

func (c *Command) Args() []string

func (*Command) Deps

func (c *Command) Deps() Commands

func (*Command) ExecString

func (c *Command) ExecString() string

func (*Command) HasArgs

func (c *Command) HasArgs() bool

func (*Command) HasSubCommands

func (c *Command) HasSubCommands() bool

func (*Command) Help

func (c *Command) Help() string

func (*Command) Name

func (c *Command) Name() string

Name returns the command's name.

func (*Command) Path

func (c *Command) Path() string

Path returns the command's full name including parents.

func (*Command) SubCommands

func (c *Command) SubCommands() Commands

type Commands

type Commands []*Command

func ParseManifest

func ParseManifest(m *manifest.Manifest) (cmds Commands, err error)

Jump to

Keyboard shortcuts

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