Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
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.
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
Click to show internal directories.
Click to hide internal directories.