JOJ3/internal/executor/local/meta.go
蔡雨翔524370910013 0a2d783dcd
Some checks failed
build / build (pull_request) Failing after 37s
build / trigger-build-image (pull_request) Has been skipped
fix: apply security patches for configuration file and local executor
2026-03-12 21:41:06 +08:00

21 lines
446 B
Go

// Package local implements an executor that runs commands directly on the local
// system. It passes current environment variables to the command, which can be
// used for passing run time parameters.
package local
import (
"os"
"github.com/joint-online-judge/JOJ3/internal/stage"
)
var name = "local"
type Local struct{}
func init() {
if os.Getenv("JOJ3_ENABLE_LOCAL_EXECUTOR") == "true" {
stage.RegisterExecutor(name, &Local{})
}
}