executor

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 7 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 {
	ExecuteCommand(ctx context.Context, name string, args ...string) (string, error)
	GetConfig() *config.Config
}

CommandExecutor defines an interface for executing commands

type DefaultExecutor

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

DefaultExecutor is the real command executor

func New

func New(cfg *config.Config) *DefaultExecutor

func (*DefaultExecutor) ExecuteCommand

func (e *DefaultExecutor) ExecuteCommand(ctx context.Context, name string, args ...string) (string, error)

func (*DefaultExecutor) GetConfig

func (e *DefaultExecutor) GetConfig() *config.Config

Jump to

Keyboard shortcuts

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