JOJ3/cmd/joj3/teapot/main.go
张泊明518370910136 8ffa64de4a
Some checks failed
build / build (push) Failing after 1m21s
build / trigger-build-image (push) Has been skipped
refactor: move modules
2024-10-06 19:41:39 -04:00

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
}