commands

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(name string, args []string) error

Execute ...

func Register

func Register(cmd Command)

Register ...

func RunCmd

func RunCmd(wd string, env []string, args ...string) (string, error)

RunCmd ...

Types

type Command

type Command interface {
	Name() string
	Usage()
	Execute(args []string) error
}

Command ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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