bertrand

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

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

Go to latest
Published: Jul 18, 2014 License: Unlicense Imports: 11 Imported by: 0

README

bertrand

Bertrand is a simple accounting program for those who won't learn ledger.

#Building & installation

git clone https://github.com/Like-all/bertrand.git
cd bertrand
go get github.com/droundy/goopt
go build
cp bertrand /somewhere/in/the/$PATH/

Also, you need to create config.json in ~/.bertrand directory:

{
    "bertrandFile": "/path/to/accounting/file.csv"
}

#Usage

Bertrand stores data in csv files, which contains four columns: DATE;ACCOUNT;AMOUNT;COMMENT(optional)

Invoking bertrand without arguments results into output all of accounts, subaccounts and it's current values from beginning of your accounting story.

Bertrand has two modes: checkout mode for posting your expenses and log mode. In checkout mode you can move your expenses values from one account to another. Optionally, you can set a date of posting:

bertrand --checkout --from salary.work --to cash.pocket --date 2014-01-01 --amount 40000.00 --comment "WOOT!"

or even shorter:

bertrand -c -f salary.work -t cash.pocket -d 2014-01-01 -a 40000.00 -C "WOOT!"

It results into two postings in csv file:

2014-01-01;salary.work;-40000.00;WOOT!
2014-01-01;cash.pocket;40000.00;WOOT!

Now you can see what's going on in your pocket:

$ bertrand | grep pocket
cash.pocket: 40000.00
$

TODO: Improve this README & fix error handling

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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