ganesh-k13/titanium-silver

Client CLI

Closed this issue · 5 comments

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:
  1. let's say linear search problem has hash 'aswe3432sa'.
  2. Your server will have a folder say /opt/aswe3432sa which has in.txt and out.txt.
  3. 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.
  4. 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

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 ?

code_hash is intended to uniquely identify a question. Like problem 1 will have w234a, etc. I'll rephrase it.

Please pull the latest master before sending new PRs. Massive changes to the interface.

Okay, will do

Closed in PR 14