[Tutor] Create command

Dominique Hagler dbhagler at gmail.com
Wed Sep 21 06:36:52 EDT 2022


Create a command line tool for storing and fetching key-value pairs. In other words, given a key and a value, which are both strings, it can store key and value together, and then return that value when fetched by that key. The tool must be able to be run from the command line by typing "key-value", though it is acceptable to also require the path or an extension (eg, "./key-value.rb" is fine). If needed, it is acceptable to include a setup script that must be run before the tool can be run. Running the tool must open an interactive session that accepts put, fetch, and exit commands. When ready to accept a command, it must output the string "> " as a command prompt.

My command example: 

Person1 = { “name” : “ Daisy”, “age”: 20}


Thank you, 

Dominique Hagler
Have a great day!

Sent from an iPhone, so please excuse brevity and typos!


More information about the Tutor mailing list