cmd

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToString

func ToString(cmd *exec.Cmd) string

Types

type Exec

type Exec struct{}

func (Exec) Output

func (e Exec) Output(cmd *exec.Cmd) ([]byte, error)

func (Exec) Run

func (e Exec) Run(cmd *exec.Cmd) error

type Executor

type Executor interface {
	Run(cmd *exec.Cmd) error
	Output(cmd *exec.Cmd) ([]byte, error)
}

func MakeExecutor

func MakeExecutor() Executor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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