Client CLI
Closed this issue · 5 comments
ganesh-k13 commented
Provide a CLI of the form:
- Upload file via
<prog> --upload file.ext --question 'question_hash'
. (question_hash'
uniquely identifies a problem statement and maps to folder containing Problem input and output).
For example:
- let's say linear search problem has hash 'aswe3432sa'.
- Your server will have a folder say /opt/aswe3432sa which has in.txt and out.txt.
- You must upload the file to that folder (or anywhere of choice) and use that context to give in.txt and out.txt to docker.
- NOTE: This is just a design choice. Please proceed however you find efficient.
-
Flask or Django server to receive the file and put it at the dockers mounted folder.
-
Send back results such as SUCCESS!, Compilation Failed: msg: ..., Testcase 'n' failed, etc
Rahul-RB commented
Shouldn't the CLI, which takes the input file also calculate code_hash
, instead of getting it as a separate input ?
If code_hash
should be an input, which program calculates the input? Or is it to be assumed that the CLI gets the code_hash
somehow ?
ganesh-k13 commented
code_hash
is intended to uniquely identify a question. Like problem 1 will have w234a
, etc. I'll rephrase it.
ganesh-k13 commented
Please pull the latest master before sending new PRs. Massive changes to the interface.
Rahul-RB commented
Okay, will do