Ragex. Watcher
(Ragex v0.36.2)
View Source
Watches directories for file changes and automatically re-analyzes modified files.
Uses FileSystem to monitor for changes and triggers re-analysis on supported files.
By default, only monitors directories containing source files (such as lib and test)
and ignores non-source directories like .git, _build, and deps.
Configuration
Directories to watch can be configured in your application configuration:
config :ragex, watcher: [dirs: ["lib", "test"]]Or:
config :ragex, :watcher,
dirs: ["lib", "test"]
Summary
Functions
Returns a specification to start this module under a supervisor.
Lists all currently watched directories.
Resolves the directories that should be watched for a given path.
Stops watching a directory (and any of its watched subdirectories).
Starts watching a directory for changes.
Checks if a directory or any of its subdirectories is currently watched.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec default_exclude_dirs() :: [String.t()]
@spec default_source_dirs() :: [String.t()]
Lists all currently watched directories.
Resolves the directories that should be watched for a given path.
Accepts :dirs via options, or falls back to :ragex, watcher: [dirs: [...]]
configuration, or standard source directories (like lib and test).
@spec start_link(keyword()) :: GenServer.on_start()
Stops watching a directory (and any of its watched subdirectories).
Starts watching a directory for changes.
By default, if path contains source directories (like lib and test),
only those source directories are watched, preventing directories like .git
from being monitored.
Options
:dirs- Explicit list of subdirectories or paths to watch.:only_source_dirs(or:source_only) - Whentrue(default), only source directories likelibandtestare monitored. Whenfalse, watchespathdirectly without filtering.
Checks if a directory or any of its subdirectories is currently watched.