Skip to content

Instantly share code, notes, and snippets.

@levlaz
Created January 9, 2024 15:13
Show Gist options
  • Save levlaz/207631c6208135d5ba093a4c2a4b8011 to your computer and use it in GitHub Desktop.
Save levlaz/207631c6208135d5ba093a4c2a4b8011 to your computer and use it in GitHub Desktop.
Direct Call
package main
import (
"log"
"os"
"os/exec"
)
func main() {
cmd := exec.Command("dagger", "call", "-m", "github.com/shykes/daggerverse/hello", "message")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
if err != nil {
log.Fatal(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment