Merged
Conversation
Add profile-based multi-user support so multiple people can track their workouts independently on the same machine. - Add profile management module (src/data/profiles.ts) with CRUD operations - Update Storage class to be profile-aware with per-user data isolation - Add global --profile flag for explicit profile selection - Add profile commands: list, create, delete - Exercises are shared across profiles, templates/workouts/config are per-user - Auto-migrate existing data to 'default' profile on first use - Single profile works automatically (backwards compatible) - Multiple profiles require explicit --profile flag
- Replace imperative loop with declarative some() in hasLegacyData() - Remove redundant fs.existsSync checks in ensureDir() (mkdirSync recursive is idempotent) - Extract requireProfileDir() helper to consolidate duplicate checks - Remove redundant null check in updateExercise() - Remove redundant profileExists check in delete command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
profilecommand group:profile list,profile create <name>,profile delete <name>--profile <name>flag for all commands--profileflagTest plan
bun run validate- all tests pass--profileflag🤖 Generated with Claude Code