chore: remove nested fields

This commit is contained in:
张泊明518370910136 2025-09-27 01:19:55 -07:00
parent 8a513acff6
commit f5798ebfe2
GPG Key ID: CA088E6D9284F870

100
conf.json
View File

@ -1,57 +1,55 @@
{ {
"stage": { "stages": [
"stages": [ {
{ "name": "sample",
"name": "sample", "executor": {
"executor": { "name": "sandbox",
"name": "sandbox", "with": {
"with": { "default": {
"default": { "args": [
"args": [ "./sample",
"./sample", "--score",
"--score", "100"
"100" ],
], "env": [
"env": [ "PATH=/usr/bin:/bin"
"PATH=/usr/bin:/bin" ],
], "cpuLimit": 10000000000,
"cpuLimit": 10000000000, "memoryLimit": 104857600,
"memoryLimit": 104857600, "procLimit": 50,
"procLimit": 50, "copyInDir": ".",
"copyInDir": ".", "copyIn": {
"copyIn": { "sample": {
"sample": { "src": "./../../../../../../build/sample"
"src": "./../../../../../../build/sample"
}
},
"copyOut": [
"stdout",
"stderr"
],
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
} }
},
"copyOut": [
"stdout",
"stderr"
],
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
} }
} }
}, }
"parsers": [ },
{ "parsers": [
"name": "sample", {
"with": { "name": "sample",
"score": 10, "with": {
"comment": " + comment from toml conf" "score": 10,
} "comment": " + comment from toml conf"
} }
] }
} ]
] }
} ]
} }