Skip to content

Add --exercise flag to workouts list#2

Merged
DTTerastar merged 1 commit into
mainfrom
exercise-filter
Apr 5, 2026
Merged

Add --exercise flag to workouts list#2
DTTerastar merged 1 commit into
mainfrom
exercise-filter

Conversation

@DTTerastar
Copy link
Copy Markdown
Collaborator

Summary

  • Adds --exercise flag to liftoff workouts list that filters output to only matching exercises
  • Uses word-prefix matching: "pull up" matches "Assisted Pull Ups", "chin" matches "Assisted Chin Ups" but not "Machine Row"
  • Works with both fitdown and --json output
  • Posts with no matching exercises are excluded entirely

Test plan

  • liftoff workouts list --exercise "bench" --since 3m shows only bench exercises
  • liftoff workouts list --exercise "pull up" matches Assisted Pull Ups, Scapular Pull Ups
  • liftoff workouts list --exercise "chin" matches Assisted Chin Ups, not Machine exercises
  • --json output also filters exercises
  • Without --exercise, behavior is unchanged

🤖 Generated with Claude Code

@DTTerastar DTTerastar force-pushed the exercise-filter branch 2 times, most recently from 46ee656 to 29375b3 Compare April 5, 2026 19:47
@DTTerastar DTTerastar merged commit d9970fa into main Apr 5, 2026
1 check failed
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.

1 participant