with actual cmd
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2022-10-29 19:04:25 +02:00
parent 45c7165a12
commit f4fe238f58
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -9,11 +9,17 @@ import (
) )
func main() { func main() {
if err := cli.Build( cmd := &cobra.Command{
Use: "dagger-go",
}
cmd.AddCommand(cli.Build(
func(cmd *cobra.Command) {}, func(cmd *cobra.Command) {},
func(ctx context.Context) error { func(ctx context.Context) error {
return nil return nil
}); err != nil { }))
log.Fatal(err)
if err := cmd.Execute(); err != nil {
log.Fatal("%w", err)
} }
} }