exec

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseArgs

func ParseArgs(info *Info, args []string)

Types

type Command

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

func (*Command) Execute

func (cmd *Command) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*Command) Name

func (*Command) Name() string

func (*Command) SetFlags

func (cmd *Command) SetFlags(f *flag.FlagSet)

func (*Command) Synopsis

func (*Command) Synopsis() string

func (*Command) Usage

func (*Command) Usage() string

type Info

type Info struct {
	Command     string
	PackageName string
	Args        []string

	Output     string
	OutputSize memory.Bytes

	Inputs     []string
	InputsSize memory.Bytes

	Start  time.Time
	Finish time.Time

	UserTime   time.Duration
	SystemTime time.Duration
}

Jump to

Keyboard shortcuts

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