Skip to content

feat(init): preserve existing config files when .sym directory exists#45

Merged
baeyc0510 merged 1 commit intomainfrom
feat/preserve-existing-config
Dec 10, 2025
Merged

feat(init): preserve existing config files when .sym directory exists#45
baeyc0510 merged 1 commit intomainfrom
feat/preserve-existing-config

Conversation

@baeyc0510
Copy link
Contributor

  • Skip overwriting roles.json, user-policy.json, config.json if they exist
  • Auto-select non-privileged role for users joining existing projects
  • Only create missing files instead of failing when .sym/ exists
  • Add --force flag to explicitly overwrite existing configuration

This enables team collaboration where the project lead defines roles and policies, commits .sym/ to version control, and team members can run 'sym init' to set up their local environment without losing shared config.

- Skip overwriting roles.json, user-policy.json, config.json if they exist
- Auto-select non-privileged role for users joining existing projects
- Only create missing files instead of failing when .sym/ exists
- Add --force flag to explicitly overwrite existing configuration

This enables team collaboration where the project lead defines roles and
policies, commits .sym/ to version control, and team members can run
'sym init' to set up their local environment without losing shared config.
@baeyc0510 baeyc0510 merged commit f15aa40 into main Dec 10, 2025
2 checks passed
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