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)
| 116 | // namespaced by user. It only calls the task's Run method when NeedsRun returns |
| 117 | // true. |
| 118 | func 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 |