Skip to content

Latest commit

 

History

History
70 lines (58 loc) · 1.63 KB

README.md

File metadata and controls

70 lines (58 loc) · 1.63 KB

resume-editor

resume-editor provides a list of commands to edit a resume stored in resume.json. It provides an interactive console to execute the commands with the required arguments.

dependencies

  • ruby 2.3.1p112
  • Ruby gem - json

usage

Usage: COMMAND [ARGS]

Commands: help Print this text add [attribute]=[value] Adds an attribute modify [attribute]=[value] Modifies an attribute delete [attribute] Deletes an attribute read [attribute] Prints an attribute's value display Pretty prints the resume object quit Quits the console

execution

$ cd resume-editor
$ rake
resume-editor>>> display
{
  "name": "Khusbu Mishra",
  "phone": "9999999999"
}
resume-editor>>> add location=Kolkata
success: `location` set to `Kolkata`
resume-editor>>> display
{
  "name": "Khusbu Mishra",
  "phone": "9999999999",
  "location": "Kolkata"
}
resume-editor>>> modify location=Bengaluru
success: `location` set to `Bengaluru`
resume-editor>>> display
{
  "name": "Khusbu Mishra",
  "phone": "9999999999",
  "location": "Bengaluru"
}
resume-editor>>> read location
location = Bengaluru
resume-editor>>> delete location
`location` deleted from the resume
resume-editor>>> display
{
  "name": "Khusbu Mishra",
  "phone": "9999999999"
}

tests

To execute tests, run the following command:

$ rake test

next-milestone

  • Better interface to edit and add nested JSON fields.
  • Better interactive console.