MCPcopy
hub / github.com/jetify-com/devbox / Run

Function Run

internal/setup/setup.go:118–120  ·  view source on GitHub ↗

Run runs a setup task and stores its state under a given key. Keys are namespaced by user. It only calls the task's Run method when NeedsRun returns true.

(ctx context.Context, key string, task Task)

Source from the content-addressed store, hash-verified

116// namespaced by user. It only calls the task's Run method when NeedsRun returns
117// true.
118func Run(ctx context.Context, key string, task Task) error {
119 return run(ctx, key, task, "")
120}
121
122// SudoDevbox relaunches Devbox as root using sudo, taking care to preserve
123// Devbox environment variables that can affect the new process. If the current

Callers 3

TestTaskNeedsRunTrueFunction · 0.85
TestTaskNeedsRunFalseFunction · 0.85
TestTaskLastRunFunction · 0.85

Calls 1

runFunction · 0.70

Tested by 3

TestTaskNeedsRunTrueFunction · 0.68
TestTaskNeedsRunFalseFunction · 0.68
TestTaskLastRunFunction · 0.68