handle_watch

Function handle_watch 

Source
pub fn handle_watch(args: &WatchArgs) -> Result<()>
Expand description

Handle file watching and synchronization operations.

ยงErrors

This function will return an error if:

  • Required output file is not specified for system-to-file or bidirectional sync
  • Environment variable manager operations fail (loading, setting)
  • Profile or project manager initialization fails
  • File watcher creation or operation fails
  • File I/O operations fail during synchronization
  • Ctrl+C signal handler setup fails
  • Change log export operations fail
  • Invalid watch configuration is provided
  • File system permissions prevent watching or writing to specified paths