Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string, dir string, stdout io.Writer, stderr io.Writer, runner Runner) int

Run executes the tango CLI and returns a process-style exit code.

Types

type ExecRunner

type ExecRunner struct{}

ExecRunner runs commands with os/exec.

func (ExecRunner) Run

func (ExecRunner) Run(ctx context.Context, dir string, name string, args []string, stdout io.Writer, stderr io.Writer) error

Run executes name with args in dir, wiring stdout and stderr through.

type Runner

type Runner interface {
	Run(ctx context.Context, dir string, name string, args []string, stdout io.Writer, stderr io.Writer) error
}

Runner executes an external command.

Jump to

Keyboard shortcuts

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