rework pipeline

This commit is contained in:
2022-10-30 18:13:57 +01:00
parent cadac9fc08
commit 2b641df577
15 changed files with 345 additions and 52 deletions

23
pkg/pipelines/default.go Normal file
View File

@@ -0,0 +1,23 @@
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())
}