Skip to content

Add date and alcohol flags to quick-add#15

Merged
milldr merged 4 commits intomainfrom
feat/quick-add-date-alcohol
Feb 16, 2026
Merged

Add date and alcohol flags to quick-add#15
milldr merged 4 commits intomainfrom
feat/quick-add-date-alcohol

Conversation

@milldr
Copy link
Owner

@milldr milldr commented Feb 16, 2026

Summary

  • Adds -d/--date flag to quick-add for retroactive diary logging (YYYY-MM-DD, yesterday, -Nd)
  • Adds -a/--alcohol flag to quick-add for tracking alcohol grams as a separate macro
  • Uses prev-day arrow navigation for date changes (same proven approach as diary/weight commands)

Closes #13, closes #14

Test plan

  • npm test — 174 tests pass (including new resolveDate and quick-add date/alcohol tests)
  • npm run build — compiles cleanly
  • npm run lint — no lint errors
  • Manual: npm run dev -- quick-add -p 30 -d yesterday -m Dinner
  • Manual: npm run dev -- quick-add -a 14 -m Dinner

@milldr milldr merged commit a4ccf84 into main Feb 16, 2026
3 checks passed
@milldr milldr deleted the feat/quick-add-date-alcohol branch February 16, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add alcohol flag to quick-add command Feature: Add date flag to quick-add command

1 participant