scripts

package
v0.0.0-...-a091e6d Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Script

type Script struct {
	Name    string
	Config  *projects.ScriptConfig
	Project *projects.Project
}

func FromProject

func FromProject(p *projects.Project, scriptName string) (*Script, error)

func New

func New(name string, config *projects.ScriptConfig) *Script

func (*Script) Run

func (s *Script) Run(opt ScriptRunOptions, args ...string) (*exec.Cmd, error)

type ScriptRunOptions

type ScriptRunOptions struct {
	Stdout io.Writer
	Stderr io.Writer
}

Jump to

Keyboard shortcuts

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