Interactive Tasks
WIP
Task Types
Section titled “Task Types”WIP
Creating Validation Tasks
Section titled “Creating Validation Tasks”Define tasks in tasks.hcl
:
resource "task" "setup_environment" { title = "Set up your environment"
condition { script = file("scripts/setup_environment/check.sh") }
on_solve { script = file("scripts/setup_environment/solve.sh") }}
Validation Scripts
Section titled “Validation Scripts”Check scripts validate that tasks are completed correctly:
#!/bin/bashif [ -f "/tmp/setup_complete" ]; then exit 0 # Successelse echo "Setup not complete. Please run the setup command." exit 1 # Failurefi
WIP