refactor(cmd/joj): put stages into stage conf
This commit is contained in:
parent
872adf1621
commit
66122f7194
|
@ -20,14 +20,6 @@ type Conf struct {
|
||||||
SandboxExecServer string `default:"localhost:5051"`
|
SandboxExecServer string `default:"localhost:5051"`
|
||||||
SandboxToken string `default:""`
|
SandboxToken string `default:""`
|
||||||
OutputPath string `default:"stages_result.json"`
|
OutputPath string `default:"stages_result.json"`
|
||||||
}
|
|
||||||
Teapot struct {
|
|
||||||
Skip bool `default:"true"`
|
|
||||||
LogPath string `default:"/home/tt/.cache/joint-teapot-debug.log"`
|
|
||||||
ScoreboardPath string `default:"scoreboard.csv"`
|
|
||||||
FailedTablePath string `default:"failed-table.md"`
|
|
||||||
GradingRepoName string `default:""`
|
|
||||||
}
|
|
||||||
Stages []struct {
|
Stages []struct {
|
||||||
Name string
|
Name string
|
||||||
Group string
|
Group string
|
||||||
|
@ -43,6 +35,14 @@ type Conf struct {
|
||||||
With interface{}
|
With interface{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Teapot struct {
|
||||||
|
Skip bool `default:"true"`
|
||||||
|
LogPath string `default:"/home/tt/.cache/joint-teapot-debug.log"`
|
||||||
|
ScoreboardPath string `default:"scoreboard.csv"`
|
||||||
|
FailedTablePath string `default:"failed-table.md"`
|
||||||
|
GradingRepoName string `default:""`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type OptionalCmd struct {
|
type OptionalCmd struct {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user