budget

command module
v0.0.0-...-e285069 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

Go Report Card

budget

Simple command-line budget tool.

How to use

go get github.com/shawnps/budget

mkdir budget

Filenames must use format YYYYMM.txt:

budget/202105.txt

Files must be in following format:

1000
5.50 sushi
10.50 sushi
15.00 sushi
8.00 book
3.00 coffee
10.00 book
8.00 sushi
4.00 coffee
3.00 coffee

The top number is the total you want to spend per month. Each line after is something you bought.

Either call the command from one directory outside of budget/, or provide the directory with -d.

$ budget -m 202105
Total:         1000.00
Remaining:     933.00
Remaining/day: 42.41
Top costs:
    sushi:  39.00
    book:   18.00
    coffee: 10.00

Tags

You can also create tags in a tags.txt file:

food: sushi, coffee
books: book

then pass the -short flag:

$ budget -m 202105 -short
Total:         1000.00
Remaining:     933.00
Remaining/day: 42.41
Costs:
    food:  49.00
    books: 18.00

You might also like

Ledger

YNAB

Personal Finance Reddit

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL