job

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bg

func Bg(w io.Writer, n int) *task.T

Bg allows the paused job to continue and returns a reference to its main task.T.

func Fg

func Fg(w io.Writer, n int) bool

Fg replaces the current foreground job with the selected job.

func Jobs

func Jobs(w io.Writer)

Jobs prints a list of stopped jobs.

func Monitor

func Monitor()

Monitor launches the goroutine responsible for monitoring jobs/tasks.

Types

type T

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

T (job) corresponds to a command entered by the user.

func Job

func Job(group int) *T

Job create a new (non-foreground) job.

func New

func New(group int) *T

New creates a new foreground job.

Jump to

Keyboard shortcuts

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