execx

package
v3.0.0-...-16f56ce Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package execx contains wrappers and utilities for the exec package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(prog string, args ...string) error

Execute runs the program with the given arguments. It attaches stdio to the child process.

func ExecuteEnv

func ExecuteEnv(env map[string]string, prog string, args ...string) error

ExecuteEnv runs the program with the given arguments with additional environment variables. It attaches stdio to the child process.

func ExecuteEnvWithIO

func ExecuteEnvWithIO(env map[string]string, stdin io.Reader, stdout, stderr io.Writer, prog string, args ...string) error

ExecuteEnvWithIO runs the program with the given arguments with additional environment variables. It attaches custom IO to the child process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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