github.com/benchkram/bob@v0.0.0-20240314204020-b7a57f2f9be9/bobtask/target/options.go (about) 1 package target 2 3 type Option func(t *T) 4 5 func WithDir(dir string) Option { 6 return func(t *T) { 7 t.dir = dir 8 } 9 } 10 11 func WithFilesystemEntries(entries []string) Option { 12 return func(t *T) { 13 t.filesystemEntriesRaw = entries 14 } 15 } 16 17 func WithDockerImages(images []string) Option { 18 return func(t *T) { 19 t.dockerImages = images 20 } 21 }