This is a fun little project in C made out of pure boredom.
It is somewhat useful though and you may use it to manage your debts!
And it even saves everything into a file!
PRs and issues are welcome!
You will need git for cloning the repo and gcc and make for building iou and ncurses.
Your linux distribution might not come with any of those, so install them:
1.1. Apt:
# apt install git gcc make ncurses
1.2. Pacman:
# pacman -S git gcc make ncurses
-
cdinto the directory you wish to contain source code -
Clone this GitHub repo
$ git clone https://github.com/jantar1154/iou
- Cd into the
ioudirectory
$ cd iou
- Build the program
$ make
- Open
config.inifile and edit the contents to your liking
- debtfilelocation: a path where debt file will be saved. Make sure all folders exist!
For example:
debtfilelocation:/home/chucknorris/.iou/debt.dat
More available settings may be added in the future
6. Run the program
$ ./iou
NOTE:
Alternatively, you can pass an argument which would be path to file other than default./debt.datfile!
For example:$ ./iou /tmp/my_temp_debt.dat!
Second argument can be your another config file.
You can refer to this chapter or write help into the prompt.
- help: shows available commands
- list: list your debts
- query: same as
list, but you can give a query - count: prints the number of debts you have
- add: adds a new entry
- edit: edits an existing entry
- exit: exits the program
My command line input does not currently support arrow keys for looking back.
Also write commands exactly as they are, no whitespaces and such.
- Able to edit configuration file from the program itself
- Add git support (not sure if I want to do it)
- Drastically improve saving/query system or completely switch to sqlite
Your ideas are welcome in issues. You can alternatively open a pull request!