https://github.com/vallen217/macro_counter
A terminal program to track, record, and view macronutritional data.
https://github.com/vallen217/macro_counter
gnu gnu-linux health linux macronutrients rust terminal-app tui unix
Last synced: 4 months ago
JSON representation
A terminal program to track, record, and view macronutritional data.
- Host: GitHub
- URL: https://github.com/vallen217/macro_counter
- Owner: Vallen217
- Created: 2023-09-26T03:07:12.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-27T17:37:27.000Z (over 1 year ago)
- Last Synced: 2025-02-28T01:03:30.182Z (over 1 year ago)
- Topics: gnu, gnu-linux, health, linux, macronutrients, rust, terminal-app, tui, unix
- Language: Rust
- Homepage:
- Size: 6.98 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Macronutritional Counter
A simple terminal program to track, record, and view macronutritional vectors.
i.e. calories, fat, carbohydrates, and protein.
- [Usage](#usage)
- [Operations](#operations)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
## Usage

macro_counter creates directries & file based on the current date (e.g. `2023/09/27.txt`)
in the directory `$HOME/Documents/Health/Macronutritional_Intake`.
Which are used as the basis to track & record macro data.
## Operations
### (mf) - Modify file

### (dr) - Display the most recent, non-current file

### (dpf) - Display previous files

### (dpm) - Display previous month's aggregated data

### (dp#) - Display aggregated data from the previous # files

### (df) - Display the current file

### (dm) - Display the current month's aggregated data

## (pd) - Predefined meals

### (cf) - create a new predefined meal file & (mf) - Modify predefined meal files

### (rf) - Remove the latest predefined file

### (m#) - Append predefined meal m# to the current file

## Prerequisites
The latest stable [Rust](https://ww.rust-lang.org) compiler.
## Installation
Download the repository with either of the below:
1. `cargo install --git https://github.com/Vallen217/macro_counter`
2. `git clone https://github.com/Vallen217/macro_counter` \
#Note: In this case you'll need to run a simple setup script to run `mctr.sh`
without typing out the absolute path every iteration: \
`bash /scripts/mctr_setup.sh `