JOJ3/cmd/joj3/teapot/main.go

19 lines
329 B
Go

package teapot
import (
"log/slog"
"os/exec"
)
func Run() error {
// TODO: call teapot
cmd := exec.Command("joint-teapot", "--help")
output, err := cmd.CombinedOutput()
if err != nil {
slog.Error("running git command:", "err", err)
return err
}
slog.Info("joint-teapot run", "output", string(output))
return nil
}