asgervelling / budgeting

A test of the commander library for creating a CLI in with Node.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Daily budget and savings CLI tool with Node

A command line interface for managing private expenses in a spending and a savings account, respectively.
You can enter your balance, as well as daily goal budget.
The program will show you what you can spend and what you can save.

Installation

git clone git@github.com:asgervelling/budgeting.git
cd budgeting && tsc
chmod +x run.sh

Run

$ ./run.sh
Usage: main [options] [command]

Options:
  -h, --help        display help for command

Commands:
  balance <amount>  Enter your current balance
  budget [options]  See your budget for today
  goal <amount>     Set your daily goal budget
  help [command]    display help for command

Example

$ ./run.sh balance 3456.78
Balance: 3456.78.
$ ./run.sh goal 80
Daily goal budget: 80.
$ ./run.sh budget
2024-03-01
Balance: 3456.78.
Daily budget: 112 (32 more than daily goal budget of 80).
$ ./run.sh budget --date 15
2024-03-15
Balance: 3456.78.
Daily budget: 203 (123 more than daily goal budget of 80).

About

A test of the commander library for creating a CLI in with Node.


Languages

Language:TypeScript 98.4%Language:JavaScript 1.3%Language:Shell 0.3%