/macro_counter

A terminal program to track, record, and view macronutritional data.

Primary LanguageRust

Macronutritional Counter

A simple terminal program to track, record, and view macronutritional vectors. i.e. calories, fat, carbohydrates, and protein.

Usage

menu

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

mf

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

dr

(dpf) - Display previous files

dpf

(dpm) - Display previous month's aggregated data

dpm

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

dp#

(df) - Display the current file

df

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

dm

(pd) - Predefined meals

pd_menu

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

pd_cf_mf

(rf) - Remove the latest predefined file

pd_rf

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

m#

Prerequisites

The latest stable Rust 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 <path_to_clone>/scripts/mctr_setup.sh