package
0.0.0-20241122174450-ed490a29207d
Repository: https://github.com/jetify-com/devbox.git
Documentation: pkg.go.dev
# Functions
Run interactively prompts the user to confirm that it's ok to run a setup task.
Reset removes a task's state so that it acts as if it has never run.
Run runs a setup task and stores its state under a given key.
Status returns the status of a setup task.
SudoDevbox relaunches Devbox as root using sudo, taking care to preserve Devbox environment variables that can affect the new process.
# Constants
TaskDone indicates that a task doesn't need to run and that its most recent run (if any) didn't report an error.
TaskError indicates that a task's most recent run failed and it cannot be re-run without a call to [Reset].
TaskNeedsRun is the status of a task that needs to be run.
TaskSudoing occurs when the caller of [Status] is running in a sudoed process due to the task calling [SudoDevbox] from the parent process.
TaskUserRefused indicates that the user answered no to a confirmation prompt to run the task.
# Variables
ErrAlreadyRefused indicates that no confirmation prompt was shown because the user previously refused to run the task.
ErrUserRefused indicates that the user responded no to an interactive confirmation prompt.
# Interfaces
Task is a setup action that can conditionally run based on the state of a previous run.
# Type aliases
TaskStatus describes the status of a task.