command

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 7 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 New

func New(options *Options) *Command

New returns a new Command instance.

func (*Command) Run

func (c *Command) Run() (pid uint32, err error)

Run the Command.

func (*Command) Wait

func (c *Command) Wait() error

type Options

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

Options define all possible options for the command.

func Default

func Default() *Options

Default returns a default options instance.

func FromContext

func FromContext(ctx *cli.Context) (*Options, error)

FromContext can be used to create Options from an CLI context.

func (*Options) Command

func (o *Options) Command() string

Command returns the command name.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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