chore: initialize go module and cmd skeleton
This commit is contained in:
11
cmd/supervisor/main.go
Normal file
11
cmd/supervisor/main.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Fprintln(os.Stderr, "supervisor: not yet implemented")
|
||||
os.Exit(1)
|
||||
}
|
||||
14
cmd/supervisor/main_test.go
Normal file
14
cmd/supervisor/main_test.go
Normal file
@@ -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)
|
||||
}
|
||||
}
|
||||
BIN
cmd/supervisor/supervisor
Executable file
BIN
cmd/supervisor/supervisor
Executable file
Binary file not shown.
Reference in New Issue
Block a user