SpiffiRacoon / group-12-kadlab

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

Command line interface: Get #11

Closed SpiffiRacoon closed 1 month ago

SpiffiRacoon commented 2 months 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.