externalcmd

package
v0.21.6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package externalcmd allows to launch external commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd added in v0.12.2

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

Cmd is an external command.

func NewCmd added in v0.17.12

func NewCmd(
	pool *Pool,
	cmdstr string,
	restart bool,
	env Environment,
	onExit func(int),
) *Cmd

NewCmd allocates a Cmd.

func (*Cmd) Close added in v0.12.2

func (e *Cmd) Close()

Close closes the command. It doesn't wait for the command to exit.

type Environment

type Environment map[string]string

Environment is a Cmd environment.

type Pool added in v0.17.12

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

Pool is a pool of external commands.

func NewPool added in v0.17.12

func NewPool() *Pool

NewPool allocates a Pool.

func (*Pool) Close added in v0.17.12

func (p *Pool) Close()

Close waits for all external commands to exit.

Jump to

Keyboard shortcuts

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