mix usage_rules.sync (usage_rules v0.1.4)
View SourceCombine the package rules for the provided packages into the provided file, or list/gather all dependencies.
Options
--all
- Gather usage rules from all dependencies that have them--list
- List all dependencies with usage rules. If a file is provided, shows status (present, missing, stale)--remove
- Remove specified packages from the target file instead of adding them--link-to-folder <folder>
- Save usage rules for each package in separate files within the specified folder and create CLAUDE.md style links
Examples
Combine specific packages:
mix usage_rules.sync rules.md ash ash_postgres phoenix
Gather all dependencies with usage rules:
mix usage_rules.sync rules.md --all
List all dependencies with usage rules:
mix usage_rules.sync --list
Check status of dependencies against a specific file:
mix usage_rules.sync rules.md --list
Remove specific packages from a file:
mix usage_rules.sync rules.md ash phoenix --remove
Save usage rules to individual files in a folder with links to individual files:
mix usage_rules.sync rules.md ash phoenix --link-to-folder rules
Combine all dependencies with folder links with links to individual files:
mix usage_rules.sync rules.md --all --link-to-folder docs
Check status of packages using folder links:
mix usage_rules.sync rules.md --list --link-to-folder rules
Remove packages and their folder files:
mix usage_rules.sync rules.md ash phoenix --remove --link-to-folder rules