entrypoint

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	*exec.Cmd
	// contains filtered or unexported fields
}

Cmd runs a command in a subprocess (asynchronously). Call `go cmd.Run()` to run the command asynchronously. Use the Started() channel to wait for the command to start. Use the Done() channel to wait for the command to complete.

func NewCmd

func NewCmd(log hclog.Logger, args []string) *Cmd

func (*Cmd) Done

func (e *Cmd) Done() chan struct{}

func (*Cmd) Run

func (e *Cmd) Run()

Run the command. The Started() and Done() functions can be used to wait for the process to start and exit, respectively.

func (*Cmd) Started

func (e *Cmd) Started() chan struct{}

Jump to

Keyboard shortcuts

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