exec

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package exec is the Supervisor that runs real operating-system processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Supervisor

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

Supervisor starts and stops processes.

func New

func New() *Supervisor

New returns a Supervisor with no processes.

func (*Supervisor) Detach

func (*Supervisor) Detach(spec *types.ProcessSpec) error

Detach starts spec in a new session and releases it. Where sessions are not available (Windows) it starts spec without one, so the process may still end with the caller's console. spec must not be nil.

func (*Supervisor) Start

Start starts spec and waits for ready. spec must not be nil.

func (*Supervisor) StopAll

func (s *Supervisor) StopAll(ctx context.Context) error

StopAll stops every supervised process, newest first, and returns the first error.

Jump to

Keyboard shortcuts

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