diff --git a/cmd/supervisor/main.go b/cmd/supervisor/main.go new file mode 100644 index 0000000..1b7f875 --- /dev/null +++ b/cmd/supervisor/main.go @@ -0,0 +1,11 @@ +package main + +import ( + "fmt" + "os" +) + +func main() { + fmt.Fprintln(os.Stderr, "supervisor: not yet implemented") + os.Exit(1) +} diff --git a/cmd/supervisor/main_test.go b/cmd/supervisor/main_test.go new file mode 100644 index 0000000..87cf84c --- /dev/null +++ b/cmd/supervisor/main_test.go @@ -0,0 +1,14 @@ +package main + +import ( + "os/exec" + "testing" +) + +func TestBinaryCompiles(t *testing.T) { + cmd := exec.Command("go", "build", "./...") + out, err := cmd.CombinedOutput() + if err != nil { + t.Fatalf("build failed: %s\n%s", err, out) + } +} diff --git a/cmd/supervisor/supervisor b/cmd/supervisor/supervisor new file mode 100755 index 0000000..f9c6f99 Binary files /dev/null and b/cmd/supervisor/supervisor differ diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..dd8800f --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/mathiasbq/supervisor + +go 1.26.1