bust/pkg/pipelines/default.go

21 lines
291 B
Go
Raw Permalink Normal View History

2022-10-30 18:13:57 +01:00
package pipelines
import (
"log"
"git.front.kjuulh.io/kjuulh/byg"
)
2022-10-30 18:33:59 +01:00
func (p *Pipeline) WithDefault() *byg.Builder {
2022-10-30 18:13:57 +01:00
return byg.
New().
Step(
"default step",
byg.Step{
Execute: func(ctx byg.Context) error {
log.Println("Hello, world!")
return nil
},
2022-10-30 18:33:59 +01:00
})
2022-10-30 18:13:57 +01:00
}