Bankroll ![Latest Version] ![Docs] ![Conduct svg]

Ledger implementation in Rust. It takes concepts from ledger-cli but with a TOML file type.

Documentation

Find it on Docs.rs

Install

From Cargo

cargo install bankroll

Build from Source

Alternatively, clone this repo and do the following:

Usage

Environment variable

LEDGER_FILE - relative path to toml ledger file

LEDGER_FILE=~/ledger.toml bankroll balance

LEDGER_FILE can be set as a system or user environment variable.

export LEDGER_FILE="$HOME/ledger.toml"

Example

``` $ ./bankroll --help bankroll 0.1.0

USAGE: bankroll

FLAGS: -h, --help Prints help information -r, --real Only shows real transactions -V, --version Prints version information

SUBCOMMANDS: balance
help Prints this message or the help of the given subcommand(s) import
register
$ ./bankroll balance

  $ 2970.00 Assets:checking
  $ 9970.00 Assets:savings
$ -13000.00 Equity:opening balance
    $ 15.00 Expenses:entertainment
    $ 60.00 Expenses:general
   $ -15.00 Liabilities:credit

─────────────── 0

─────────────── Funds $ 980.00 Fund:Auto

$ ./bankroll balance

2020-01-01 income Assets:checking $ 3000.00 $ 3000.00 Assets:savings $ 10000.00 $ 13000.00 Equi:opening balance $ -13000.00 0 2020-01-01 Sample really long that… Expenses:general $ 10.00 $ 10.00 Expenses:general $ 10.00 $ 20.00 Assets:savings $ -10.00 $ 10.00 Assets:checking $ -10.00 0 2020-01-01 Sample transaction Expenses:general $ 10.00 $ 10.00 Expenses:general $ 10.00 $ 20.00 Assets:checking $ -20.00 0 2020-01-01 Movie night Expens:entertainment $ 15.00 $ 15.00 Liabilities:credit $ -15.00 0 2020-08-01 Car Repair Expenses:general $ 20.00 $ 20.00 Assets:savings $ -20.00 0 (Fund:Auto) $ -20.00

$ ./bankroll import example/sample.csv

"example/sample.csv" imported Successfully

```

License

Licensed under GNU General Public License, Version 3, 29 June 2007 (LICENSE-GNU or https://www.gnu.org/licenses/gpl.html)

Contribution