run

package
v0.0.0-...-32bb601 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package run provides a small, injectable command runner so providers that shell out (docker, dnscontrol, ssh) stay unit-testable with a fake.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exec

type Exec struct{}

Exec is the default Runner backed by os/exec.

func (Exec) Run

func (Exec) Run(ctx context.Context, stdin []byte, name string, args ...string) ([]byte, error)

Run executes name with args, feeding stdin when non-nil, returning combined output.

type Runner

type Runner interface {
	Run(ctx context.Context, stdin []byte, name string, args ...string) ([]byte, error)
}

Runner executes an external command, optionally feeding stdin, returning combined output.

Jump to

Keyboard shortcuts

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