Closed dgc9715 closed 4 years ago
I already implemented on #96 parsing and storing all configs coming from companion on config.json. Read here to see how to access those values:
This is how it looks config.json
right now:
{
"mainSolution": {
"value": "/Users/marcelo/.acmx/solutions/Codeforces - Codeforces Round #634 (Div. 3)/B. Construct the String/sol.cpp"
},
"bruteSolution": {},
"generator": {},
"checker": {},
"companionConfig": {
"value": {
"name": "B. Construct the String",
"group": "Codeforces - Codeforces Round #634 (Div. 3)",
"url": "https://codeforces.com/contest/1335/problem/B",
"memoryLimit": 256,
"timeLimit": 2000
}
}
}
So, what you should do, is to parse properly value configFile.companionConfig.url to extract contest id and problem letter, which I understand are the relevant elements to submit from cf-tools.
Since we use cf-tool directly from console "Throw relevant error when cf-tool is not installed" isn't necessary because the system will throw an appropriate error. So I will check them as done :)
Missing:
acmx
instead of default terminalFix #88