commandexec

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

type CommandExecutor interface {
	Exec(name string, args ...string) ([]byte, error)
	LookPath(file string) (string, error)
}

CommandExecutor interface for executing external commands and resolving binaries

type Executor

type Executor struct{}

Executor implements CommandExecutor for real command execution

func NewExecutor

func NewExecutor() *Executor

func (*Executor) Exec

func (e *Executor) Exec(name string, args ...string) ([]byte, error)

func (*Executor) LookPath

func (e *Executor) LookPath(file string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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