exec

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 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 (s *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.

func (*Supervisor) Start

Start starts spec and waits for ready.

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