refactor(internal): rename executor & parser dir
This commit is contained in:
parent
d80704643a
commit
5bbbcb14aa
|
@ -6,8 +6,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/joint-online-judge/JOJ3/cmd/joj3/conf"
|
"github.com/joint-online-judge/JOJ3/cmd/joj3/conf"
|
||||||
"github.com/joint-online-judge/JOJ3/internal/executors"
|
executors "github.com/joint-online-judge/JOJ3/internal/executor"
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers"
|
_ "github.com/joint-online-judge/JOJ3/internal/parser"
|
||||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||||
|
|
||||||
"github.com/jinzhu/copier"
|
"github.com/jinzhu/copier"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package executors
|
package executors
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/executors/dummy"
|
_ "github.com/joint-online-judge/JOJ3/internal/executor/dummy"
|
||||||
"github.com/joint-online-judge/JOJ3/internal/executors/sandbox"
|
"github.com/joint-online-judge/JOJ3/internal/executor/sandbox"
|
||||||
)
|
)
|
||||||
|
|
||||||
// this file does nothing but imports to ensure all the init() functions
|
// this file does nothing but imports to ensure all the init() functions
|
16
internal/parser/all.go
Normal file
16
internal/parser/all.go
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
package parsers
|
||||||
|
|
||||||
|
import (
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/clangtidy"
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/cppcheck"
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/cpplint"
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/diff"
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/dummy"
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/healthcheck"
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/keyword"
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/resultstatus"
|
||||||
|
_ "github.com/joint-online-judge/JOJ3/internal/parser/sample"
|
||||||
|
)
|
||||||
|
|
||||||
|
// this file does nothing but imports to ensure all the init() functions
|
||||||
|
// in the subpackages are called
|
|
@ -1,16 +0,0 @@
|
||||||
package parsers
|
|
||||||
|
|
||||||
import (
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/clangtidy"
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/cppcheck"
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/cpplint"
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/diff"
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/dummy"
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/healthcheck"
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/keyword"
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/resultstatus"
|
|
||||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/sample"
|
|
||||||
)
|
|
||||||
|
|
||||||
// this file does nothing but imports to ensure all the init() functions
|
|
||||||
// in the subpackages are called
|
|
Loading…
Reference in New Issue
Block a user