SpiffiRacoon / group-12-kadlab

Lab for the LTU course D7024E
0 stars 0 forks source link

Command line interface: Exit #12

Closed SpiffiRacoon closed 1 week ago

SpiffiRacoon commented 3 weeks ago

M3. Command line interface. [5p]. Each node must provide a command line interface through which the following commands can be executed: (a) put: Takes a single argument, the contents of the file you are uploading, and outputs the hash of the object, if it can be uploaded successfully. (b) get: Takes a hash as its only argument, and outputs the contents of the object and the node it was retrieved from, if it could be downloaded successfully. (c) exit: Terminates the node.