execshim

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 6 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

This file was generated by counterfeiter with command: counterfeiter -p os/exec BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS

This file was generated by counterfeiter with command: counterfeiter -p os/exec BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd interface {
	Start() error
	SetStdout(io.Writer)
	SetStderr(io.Writer)
	SetStdin(io.Reader)
	StdoutPipe() (io.ReadCloser, error)
	StderrPipe() (io.ReadCloser, error)
	Wait() error
	SetEnv([]string)
	Run() error
	CombinedOutput() ([]byte, error)
	Pid() int
	SysProcAttr() *syscall.SysProcAttr
}

type Exec

type Exec interface {
	Command(name string, arg ...string) Cmd
	CommandContext(ctx context.Context, name string, arg ...string) Cmd
	LookPath(file string) (string, error)
}

type ExecShim

type ExecShim struct{}

func (*ExecShim) Command

func (sh *ExecShim) Command(name string, arg ...string) Cmd

func (*ExecShim) CommandContext

func (sh *ExecShim) CommandContext(ctx context.Context, name string, arg ...string) Cmd

func (*ExecShim) LookPath

func (sh *ExecShim) LookPath(file string) (string, error)

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