Skip to content

zr-deps - Dependency Manifest Updater

Scans framework directories for cross-directory function calls and writes .zshand-deps manifest files that define load-order dependencies between directories.

Overview

Each framework directory can have a .zshand-deps file listing other directories it depends on. zr-deps scans source files for function calls that reference other directories and updates these manifests automatically. This ensures the build system compiles and loads directories in the correct order.

When to use: After adding new cross-directory function calls, or when load-order issues cause "function not found" errors at startup.

Usage

zr-deps [dir_name]

Arguments

  • No arguments: updates .zshand-deps for all framework directories
  • dir_name: updates only that directory (e.g., widgets, hooks, core)

Options

  • -h, --help: Show help message

Valid Directory Names

startup, shared_functions, core, functions, widgets, hooks, private_functions

Examples

# Update dependency manifests for all directories
zr-deps

# Update only the widgets directory
zr-deps widgets

Dependencies

  • Required: lib/rebuild/dirs.zsh, lib/rebuild/manifest.zsh, lib/rebuild/update_manifest_dependencies.zsh

See Also

  • zr — Framework rebuild (uses dependency order from manifests)
  • zrebuild — Force rebuild with validation