in this code i have created a CLI tool for expense Tracker, it's a basic but necessary tool using cli
- Text-Based Interface: Users type commands and view text output.
- Lightweight and Fast: Unlike graphical user interfaces (GUIs), CLIs require fewer resources and are faster to use for repetitive tasks.
- Scriptable: Commands can be saved in scripts to automate tasks.
- Versatile: Available across all major operating systems (e.g., Windows Command Prompt, macOS Terminal, Linux Shell).
after running the code, in the output terminals the availability that i have are :
*after adding the data output is
as data has been stored in json format, so the data looks like:
*to viewing the all expenses, by using the command for this, i got the output as : Product_expense :100 Product_expense :80 Product_expense :1000000
*to delete the data we can use the respective command and it helps to delete the input
-
for updating we follow the same principal
Thank You Abhinandan