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 ¶
- func DryRun(ctx gocontext.Context, g *graph.CompleteGraph, rs *runSpec, ...) error
- func ExecuteRun(ctx gocontext.Context, helper *cmdutil.Helper, signalWatcher *signals.Watcher, ...) error
- func GraphRun(ctx gocontext.Context, rs *runSpec, engine *core.Engine, base *cmdutil.CmdBase) error
- func LogTag(logger hclog.Logger)
- func RealRun(ctx gocontext.Context, g *graph.CompleteGraph, rs *runSpec, ...) error
- type GlobalHashableInputs
- type Opts
- type TaskError
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 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 ¶
SynthesizeCommand produces a command that produces an equivalent set of packages, tasks, and task arguments to what the current set of opts selects.