rework pipeline
This commit is contained in:
23
pkg/pipelines/default.go
Normal file
23
pkg/pipelines/default.go
Normal 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())
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user