Skip to content

A ledger-cli tool to track MTA expenses (assuming usage of CashApp Boost & Fare-Capping)

Notifications You must be signed in to change notification settings

adityaxdiwakar/ledgerMTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ledgerMTA

A ledger-cli tool to track MTA expenses (assuming usage of CashApp Boost & Fare-Capping). It will automatically determine (using your ledger file) how much you have saved using CashApp, FareCapping, etc. It will also produce a per-ride cost figure for any specified period.

It does require three accounts: Expenses:Travel:Subway, Expenses:Travel:Subway:Boost, and Expenses:Travel:Subway:Farecap where the full $2.75 is always billed to the first account, paid via the ...:Farecapwhen using farecap. If a CashApp boost applies, $1 is paid via ...:Boost

Installation

git clone [email protected]:adityaxdiwakar/ledgerMTA.git
cd ledgerMTA/
go build .
mv ledgerMTA /usr/local/bin/.

Usage

Simply run ledgerMTA with any additional arguments (i.e. --begin or --end) as they will be passed to ledger-cli. You also must pass your records file using the LEDGER_PATH environment variable.

export LEDGER_PATH=records.ldg
➜  ledgerMTA
Total Rides Taken:      34      $93.50
Paid Rides Taken:       25      $49.75
Full Cost Rides:        6       $16.50
Cost per Ride:          N/A     $1.46
➜  ledgerMTA --begin 2022/06/06      
Total Rides Taken:      17      $46.75
Paid Rides Taken:       12      $23.00
Full Cost Rides:        2       $5.50
Cost per Ride:          N/A     $1.35
➜  ledgerMTA --begin 2022/05/30 --end 2022/06/05 
Total Rides Taken:      16      $44.00
Paid Rides Taken:       13      $26.75
Full Cost Rides:        4       $11.00
Cost per Ride:          N/A     $1.67

Pro Tip

In your shell's RC file, add the line:

export LEDGER_PATH="..."

then run source ~/.<shell>rc and then you can run ledgerMTA without needing to provide the location of your records file each time.

About

A ledger-cli tool to track MTA expenses (assuming usage of CashApp Boost & Fare-Capping)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages