For mastering this challenge you need to understand the following things:
- File Handling: Create, Read, Update, Delete
- Executing System Commands
You are building a cli tool, to create and review notes. The following things should be possible:
- Create a new note and give it a name
- Update / Edit a note
- Delete a note
- List all notes
The program needs to have a command line interface. All notes needs to be saved as a file. When a new note is created, a new file needs to be created.
The following commands should exist on the cli:
After any action completed print out the status of the action. So something like “Note: ‘Hello World’ saved!”.
After any action return a exit code. 0 means ok. 1 means something went wrong
If this tutorial bored you, it’s time to advance! See you in the next challenge!