cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT 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 NewGitCommand

func NewGitCommand(subCmd string) *Command

func (*Command) Read

func (c *Command) Read(p []byte) (n int, err error)

func (*Command) Run

func (c *Command) Run(ctx context.Context) error

func (*Command) Start

func (c *Command) Start(ctx context.Context) error

func (*Command) Wait

func (c *Command) Wait() error

func (*Command) WithArgs

func (c *Command) WithArgs(args ...string) *Command

func (*Command) WithEnv

func (c *Command) WithEnv(env ...string) *Command

func (*Command) WithGitDir

func (c *Command) WithGitDir(gitDir string) *Command

func (*Command) WithOptions

func (c *Command) WithOptions(opts ...string) *Command

func (*Command) WithStderr

func (c *Command) WithStderr(stderr io.Writer) *Command

func (*Command) WithStdin

func (c *Command) WithStdin(stdin io.Reader) *Command

func (*Command) WithStdout

func (c *Command) WithStdout(stdout io.Writer) *Command

Jump to

Keyboard shortcuts

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