Ragex.Watcher (Ragex v0.31.0)

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.

Summary

Functions

Returns a specification to start this module under a supervisor.

Lists all currently watched directories.

Stops watching a directory.

Starts watching a directory for changes.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

list_watched()

@spec list_watched() :: [String.t()] | {:error, term()}

Lists all currently watched directories.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

unwatch_directory(path)

@spec unwatch_directory(String.t()) :: :ok | {:error, term()}

Stops watching a directory.

watch_directory(path)

@spec watch_directory(String.t()) :: :ok | {:error, term()}

Starts watching a directory for changes.