execx

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(plan ExecPlan) (int, error)

func ExecShell

func ExecShell(plan ShellPlan) (int, error)

ExecShell executes a shell expression via sh -c, replacing the current process.

Types

type ExecPlan

type ExecPlan struct {
	Tool string   // e.g. "kubectl"
	Args []string // args passed to the tool
	Env  []string // full environment (key=value)
}

type ShellPlan

type ShellPlan struct {
	Expr string   // shell expression to pass to sh -c
	Env  []string // full environment (key=value)
}

ShellPlan describes a shell expression to execute.

Jump to

Keyboard shortcuts

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