execv

package
v0.0.0-...-a6563f9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package execv provides a wrapper around exec.Cmd for debugging purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdWrapper

type CmdWrapper struct {
	*exec.Cmd
}

CmdWrapper is a wrapper around exec.Cmd for debugging purposes.

func Command

func Command(name string, arg ...string) *CmdWrapper

Command wraps a exec.Command to add some logging about commands being run. The commands stdout/stderr default to os.Stdout/os.Stderr respectfully.

func (*CmdWrapper) Output

func (c *CmdWrapper) Output() ([]byte, error)

Output a command.

func (*CmdWrapper) Run

func (c *CmdWrapper) Run() error

Run a command.

Directories

Path Synopsis
Package gocmd provides helers for invoking Go tooling.
Package gocmd provides helers for invoking Go tooling.

Jump to

Keyboard shortcuts

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