JOJ3/cmd/joj3/teapot/main.go

21 lines
396 B
Go

package teapot
import (
"log/slog"
"os/exec"
"github.com/joint-online-judge/JOJ3/cmd/joj3/conf"
)
func Run(conf conf.Conf) 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
}