MCPcopy Create free account
hub / github.com/celer-pkg/celer / NewExecutor

Function NewExecutor

pkgs/cmd/exec.go:30–41  ·  view source on GitHub ↗

NewExecutor creates a new Executor with the given title, command, and arguments.

(title string, command string, args ...string)

Source from the content-addressed store, hash-verified

28
29// NewExecutor creates a new Executor with the given title, command, and arguments.
30func NewExecutor(title string, command string, args ...string) *executor {
31 return &executor{
32 title: title,
33 command: command,
34 args: args,
35 msys2Env: false, // Default: no MSYS2
36 msvcEnvs: "", // Default: no MSVC setup
37 workDir: "", // Default: inherit parent working directory
38 logPath: "", // Default: no logging
39 retryMaxAttempts: 0, // Default: no retry
40 }
41}
42
43// MSYS2Env enables/disables MSYS2 environment mode (Windows only).
44func (e *executor) MSYS2Env(msys2Env bool) *executor {

Callers 15

stripDeployedMethod · 0.92
GenBuildToolsVersionsMethod · 0.92
DetectMethod · 0.92
pip3InstallFunction · 0.92
setupPythonFunction · 0.92
checkIfInstalledMethod · 0.92
installMethod · 0.92
isPackageInstalledMethod · 0.92
queryGroupPackagesMethod · 0.92
isGroupPackageMethod · 0.92
getOSTypeFunction · 0.92

Calls

no outgoing calls