localexec

package
v0.0.0-...-0a4d78a Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Overview

Package localexec implements local command execution.

Index

Constants

View Source
const WorkerName = "local"

WorkerName is a name used for worker of the cmd in action result.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cmd *execute.Cmd) error

Run runs cmd with DefaultExec.

func TraceEnabled

func TraceEnabled(ctx context.Context) bool

TraceEnabled returns whether file trace is enabled or not.

Types

type LocalExec

type LocalExec struct{}

LocalExec implements execute.Executor interface that runs commands locally.

func (LocalExec) Run

func (LocalExec) Run(ctx context.Context, cmd *execute.Cmd) (err error)

Run runs a cmd.

Jump to

Keyboard shortcuts

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