Created
January 9, 2024 15:13
-
-
Save levlaz/207631c6208135d5ba093a4c2a4b8011 to your computer and use it in GitHub Desktop.
Direct Call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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