shell

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuoteSplit

func QuoteSplit(s string) []string

func ReplaceEnvVars

func ReplaceEnvVars(text string) string

ReplaceEnvVars - support format ${CAMERA_PASSWORD} and ${RTSP_USER:admin}

func RunUntilSignal added in v1.6.0

func RunUntilSignal()

Types

type Command added in v1.9.9

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

Command like exec.Cmd, but with support: - io.Closer interface - Wait from multiple places - Done channel

func NewCommand added in v1.9.9

func NewCommand(s string) *Command

func (*Command) Close added in v1.9.9

func (c *Command) Close() error

func (*Command) Done added in v1.9.9

func (c *Command) Done() <-chan struct{}

func (*Command) Run added in v1.9.9

func (c *Command) Run() error

func (*Command) Start added in v1.9.9

func (c *Command) Start() error

func (*Command) Wait added in v1.9.9

func (c *Command) Wait() error

Jump to

Keyboard shortcuts

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