run

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

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 49 Imported by: 0

Documentation

Overview

Package run implements `turbo run` This file implements the logic for `turbo run --dry`

Package run implements `turbo run` This file implements some structs for options

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DryRun

func DryRun(
	ctx gocontext.Context,
	g *graph.CompleteGraph,
	rs *runSpec,
	engine *core.Engine,
	_ *taskhash.Tracker,
	turboCache cache.Cache,
	globalEnvMode util.EnvMode,
	_ env.EnvironmentVariableMap,
	_ env.EnvironmentVariableMap,
	base *cmdutil.CmdBase,
	summary runsummary.Meta,
) error

DryRun gets all the info needed from tasks and prints out a summary, but doesn't actually execute the task.

func ExecuteRun

func ExecuteRun(ctx gocontext.Context, helper *cmdutil.Helper, signalWatcher *signals.Watcher, executionState *turbostate.ExecutionState) error

ExecuteRun executes the run command

func GraphRun

func GraphRun(ctx gocontext.Context, rs *runSpec, engine *core.Engine, base *cmdutil.CmdBase) error

GraphRun generates a visualization of the task graph rather than executing it.

func LogTag

func LogTag(logger hclog.Logger)

LogTag logs out the build tag (in this case "go") for the current build.

func RealRun

func RealRun(
	ctx gocontext.Context,
	g *graph.CompleteGraph,
	rs *runSpec,
	engine *core.Engine,
	taskHashTracker *taskhash.Tracker,
	turboCache cache.Cache,
	globalEnvMode util.EnvMode,
	globalEnv env.EnvironmentVariableMap,
	globalPassThroughEnv env.EnvironmentVariableMap,
	packagesInScope []string,
	base *cmdutil.CmdBase,
	runSummary runsummary.Meta,
	packageManager *packagemanager.PackageManager,
	processes *process.Manager,
	executionState *turbostate.ExecutionState,
) error

RealRun executes a set of tasks

Types

type GlobalHashableInputs

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

GlobalHashableInputs represents all the things that we use to create the global hash

type Opts

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

Opts holds the current run operations configuration

func (*Opts) SynthesizeCommand

func (o *Opts) SynthesizeCommand(tasks []string) string

SynthesizeCommand produces a command that produces an equivalent set of packages, tasks, and task arguments to what the current set of opts selects.

type TaskError

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

TaskError wraps an error encountered running the given task

func (*TaskError) Error

func (te *TaskError) Error() string

func (*TaskError) Unwrap

func (te *TaskError) Unwrap() error

Unwrap allows for interoperation with standard library error wrapping

Jump to

Keyboard shortcuts

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