with actual cli

This commit is contained in:
2022-10-30 18:33:59 +01:00
parent 2b641df577
commit 18f7e1fc27
10 changed files with 107 additions and 66 deletions

View File

@@ -1,13 +1,12 @@
package pipelines
import (
"context"
"log"
"git.front.kjuulh.io/kjuulh/byg"
)
func (p *Pipeline) WithDefault() error {
func (p *Pipeline) WithDefault() *byg.Builder {
return byg.
New().
Step(
@@ -17,7 +16,5 @@ func (p *Pipeline) WithDefault() error {
log.Println("Hello, world!")
return nil
},
}).
Execute(context.Background())
})
}

View File

@@ -4,16 +4,16 @@ import (
"context"
"git.front.kjuulh.io/kjuulh/byg"
"git.front.kjuulh.io/kjuulh/dagger-go/internal"
"git.front.kjuulh.io/kjuulh/dagger-go/pkg/builder"
"golang.org/x/sync/errgroup"
)
type Pipeline struct {
builder *internal.Builder
builder *builder.Builder
pipelines []*byg.Builder
}
func New(builder *internal.Builder) *Pipeline {
func New(builder *builder.Builder) *Pipeline {
return &Pipeline{builder: builder}
}