This doesn't really take much advantage of structured logging beyond what is already done (`id` and `idColor`), and consequently the log handler does not try to do any handling of anything more than that (i.e., grouping, or arbitrary attributes beyond those defined).
One should maybe have a `Context` available to pass in, but there isn't one, and anyway, the log handler doesn't use it, so I've passed in a `TODO` instead.
Everything else is just normal import/rename changes.
Testing Done:
Ran `go run . run`
Reviewed at https://reviews.imfreedom.org/r/2871/
packagedocker
import(
"fmt"
"log/slog"
"keep.imfreedom.org/grim/convey/environment"
"keep.imfreedom.org/grim/convey/runtime"
)
typeEnvironmentstruct{}
// New creates a new Environment task.
func(e*Environment)New()runtime.Task{
return&Environment{}
}
// Valid validates the task.
func(e*Environment)Valid()error{
returnfmt.Errorf("The docker/environment tasks was removed in version 0.15.0")