Skip to content

giftade/expense_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expense Tracker

Expense Tracker is a CLI tool for tracking expenses. It allows you to add, list, delete, and summarize expenses.

Features

  • Add new expenses
  • List all expenses
  • Delete an expense by ID
  • Summarize expenses by month

Installation

  1. Clone the repository:
    git clone https://github.com/giftade/expense_tracker
  2. Navigate to the project directory:
    cd expense-tracker
  3. Install dependencies:
    go mod tidy

Usage

Add an Expense

To add a new expense, use the AddExpenses command:

go run main.go add --description "Description" --amount 100.50

List Expenses

To list all expenses, use the ListExpenses command:

go run main.go list

Delete an Expense

To delete an expense by ID, use the DeleteExpense command:

go run main.go delete --id 1

Summarize Expenses

To summarize expenses by month, use the ExpenseSummary command:

go run main.go summary --month 1

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages