This commit is contained in:
2022-10-29 21:00:43 +02:00
commit 81bf4841b8
4 changed files with 110 additions and 0 deletions

34
examples/test.go Normal file
View File

@@ -0,0 +1,34 @@
package examples
import (
"context"
"testing"
"git.front.kjuulh.io/kjuulh/byg"
)
func Test(t *testing.T) {
byg.New().
Step(
"fetch resources",
byg.Step{
Execute: func(ctx byg.Context) error {
return nil
},
},
byg.Step{
Execute: func(ctx byg.Context) error {
return nil
},
},
).
Step(
"build stuff",
byg.Step{
Execute: func(ctx byg.Context) error {
return nil
},
},
).Execute(context.Background())
}