mix usage_rules.sync (usage_rules v0.1.7)

View Source

Combine 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 links to them
  • --link-style <style> - Style of links to create when using --link-to-folder (markdown|at). Defaults to 'markdown'

Examples

Combine specific packages:

mix usage_rules.sync CLAUDE.md --all --link-to-folder deps

Gather all dependencies with usage rules:

mix usage_rules.sync CLAUDE.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 CLAUDE.md --list

Remove specific packages from a file:

mix usage_rules.sync CLAUDE.md ash phoenix --remove

Save usage rules to individual files in a folder with markdown links:

mix usage_rules.sync CLAUDE.md ash phoenix --link-to-folder rules

Save usage rules with @-style links:

mix usage_rules.sync CLAUDE.md ash phoenix --link-to-folder rules --link-style at

Link directly to deps files without copying:

mix usage_rules.sync CLAUDE.md ash phoenix --link-to-folder deps

Combine all dependencies with folder links:

mix usage_rules.sync CLAUDE.md --all --link-to-folder docs

Check status of packages using folder links:

mix usage_rules.sync CLAUDE.md --list --link-to-folder rules

Remove packages and their folder files:

mix usage_rules.sync CLAUDE.md ash phoenix --remove --link-to-folder rules