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

13
example/cli/main.go Normal file
View File

@@ -0,0 +1,13 @@
package main
import (
"log"
"git.front.kjuulh.io/kjuulh/dagger-go/pkg/cli"
)
func main() {
if err := cli.NewCli().Execute(); err != nil {
log.Fatal(err)
}
}

View File

@@ -4,7 +4,7 @@ import (
"context"
"log"
"git.front.kjuulh.io/kjuulh/dagger-go/internal"
"git.front.kjuulh.io/kjuulh/dagger-go/pkg/builder"
"git.front.kjuulh.io/kjuulh/dagger-go/pkg/pipelines"
)
@@ -16,7 +16,7 @@ func main() {
}
}
func run(ctx context.Context) error {
builder, err := internal.New(ctx)
builder, err := builder.New(ctx)
if err != nil {
return err
}