Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transactions in batch through text file #12

Closed
vitokhangnguyen opened this issue Oct 15, 2019 · 3 comments · Fixed by #13
Labels

Comments

@vitokhangnguyen
Copy link
Contributor

@vitokhangnguyen vitokhangnguyen commented Oct 15, 2019

Right now, all transactions are added individually. I think it is a good idea for the user to be able to add many of them at the same time through a text file.

A scenario this can be useful is that the user does not have a network connection at the moment. Writing all transactions down on a file and process them at the same time would help.

The new command syntax can be:

budget add --file-path ~/path/to/text/file.txt

File format can be:

# Text file can have comments and should be ignored
expense: 900, Rent, House
expense: Aug 8, 60, Gas, Other
income: Oct 11, 2000, Paycheck, Paycheck
income: 150, Paycheck, Bonus

How do you think?

@utkuufuk

This comment has been minimized.

Copy link
Owner

@utkuufuk utkuufuk commented Oct 15, 2019

@vitokhangnguyen TBH I don't expect this to be used as much as edit or delete, but might prove useful once in a while in some cases as you mentioned.

I'd prefer a command like this though:

budget insert /path/to/file

And a format consistent with expense & income commands, so the user won't have to remember 2 formats:

expense "900, Rent, House"
expense "Aug 8, 60, Gas, Other"
income "Oct 11, 2000, Paycheck, Paycheck"
income "150, Paycheck, Bonus"

Feel free to work on this if you like 👍

@utkuufuk utkuufuk changed the title New Feature Request: Add transactions in batch through text file Add transactions in batch through text file Oct 15, 2019
@vitokhangnguyen

This comment has been minimized.

Copy link
Contributor Author

@vitokhangnguyen vitokhangnguyen commented Oct 15, 2019

My colleague Grommers00 and I will work on this. We will try to get it done as soon as possible given the time we have.

@Grommers00

This comment has been minimized.

Copy link
Contributor

@Grommers00 Grommers00 commented Oct 15, 2019

Yes, we will work on it together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.