cmd

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: GPL-3.0 Imports: 4 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) Envs added in v1.2.0

func (c *Command) Envs() []yaml.MapSlice

Envs returns the ordered scope chain that applies to this command, from the outermost ancestor scope down to the command's own scope. Empty if no ancestor or this command declared an 'env:' section.

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) Imports added in v1.3.0

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

Imports returns the ordered list of per-include import paths (root-relative) that apply to this command, ancestors first, command's own last.

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