add byg
This commit is contained in:
34
examples/test.go
Normal file
34
examples/test.go
Normal 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())
|
||||
|
||||
}
|
Reference in New Issue
Block a user