runner

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(args []string) error

Main orchestrates the leash runtime workflow using the provided argv slice. When args is empty, os.Args is used to mirror standard command invocation.

func SetVersion

func SetVersion(v string)

SetVersion sets the human-readable leash version used in interactive UIs.

func TestMain

func TestMain(m *testing.M)

Types

type ExitCodeError

type ExitCodeError struct {
	// contains filtered or unexported fields
}

ExitCodeError propagates the exact exit status produced by the leashed command running inside the target container. Returning a plain error would flatten every failure to exit code 1; this wrapper keeps the original status while still fitting into our error handling.

func (*ExitCodeError) Error

func (e *ExitCodeError) Error() string

func (*ExitCodeError) ExitCode

func (e *ExitCodeError) ExitCode() int

Jump to

Keyboard shortcuts

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