bust/pkg/pipelines/default.go
2022-10-30 18:13:57 +01:00

24 lines
329 B
Go

package pipelines
import (
"context"
"log"
"git.front.kjuulh.io/kjuulh/byg"
)
func (p *Pipeline) WithDefault() error {
return byg.
New().
Step(
"default step",
byg.Step{
Execute: func(ctx byg.Context) error {
log.Println("Hello, world!")
return nil
},
}).
Execute(context.Background())
}