spawn

package
v1.0.67 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

type Options

type Options struct {
	// LogFileName if set to non-empty value, stdout and stderr for the sub-process
	// will be written to ~/.thelma/logs/<NAME>.out and ~/.thelma/logs/<NAME>.err
	LogFileName string
	// CustomExecutable FOR USE IN TESTS ONLY use a custom executable instead of "thelma"
	CustomExecutable string
}

type Spawn

type Spawn interface {
	// CurrentProcessIsSpawn returns true if the current process is a spawn process
	CurrentProcessIsSpawn() bool
	// Spawn spawns a Thelma subcommand in the background, detached
	// so that it lives even after the currently running process exits.
	// Its primary use case is Thelma's self-update feature.
	Spawn(args ...string) error
}

func New

func New(root root.Root, opts ...Option) Spawn

Directories

Path Synopsis
testing

Jump to

Keyboard shortcuts

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