scriptrun

package
v0.0.0-...-800c319 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathProvidesExec

func PathProvidesExec(path, exec string) bool

Types

type ScriptRun

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

ScriptRun manages the context required to run a script.

func New

func New(prime primeable) *ScriptRun

New returns a pointer to a prepared instance of ScriptRun.

func (*ScriptRun) NeedsActivation

func (s *ScriptRun) NeedsActivation() bool

NeedsActivation indicates whether the underlying environment has been prepared and activated.

func (*ScriptRun) PrepareVirtualEnv

func (s *ScriptRun) PrepareVirtualEnv() (rerr error)

PrepareVirtualEnv sets up the relevant runtime and prepares the environment.

func (*ScriptRun) Run

func (s *ScriptRun) Run(script *project.Script, args []string) error

Run executes the script after ensuring the environment is prepared.

Jump to

Keyboard shortcuts

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