watchexec vs entr

Compare watchexec, entr: workflows, strengths and tradeoffs.

Updated

short verdict

Choose watchexec if you want project-directory watching with ignore-file support. Choose entr if you want to supply an explicit list of files to watch.

Compare the workflow you need with the input, interface and configuration each tool expects. Choose watchexec if you want project-directory watching with ignore-file support. Choose entr if you want to supply an explicit list of files to watch.

pick

watchexec

★ 7.3kRust
details

Choose watchexec if you want project-directory watching with ignore-file support.

best for

  • You want project-directory watching with ignore-file support

strengths

  • Reruns a command after file changes
  • Respects project ignore patterns

weaknesses

  • The watched paths and ignored outputs need care to prevent feedback loops.
pick

entr

★ 5.7kC
details

Choose entr if you want to supply an explicit list of files to watch.

best for

  • You want to supply an explicit list of files to watch

strengths

  • Accepts the watched-file list on standard input
  • Uses filesystem events through kqueue or inotify

weaknesses

  • You must construct the input file list for the command you want to rerun.

Key differences

  • watchexec: you want project-directory watching with ignore-file support.
  • entr: you want to supply an explicit list of files to watch.

Choose watchexec when

The watched paths and ignored outputs need care to prevent feedback loops.

  • Reruns a command after file changes
  • Respects project ignore patterns

Choose entr when

You must construct the input file list for the command you want to rerun.

  • Accepts the watched-file list on standard input
  • Uses filesystem events through kqueue or inotify

FAQ

When should I choose watchexec?
Choose watchexec if you want project-directory watching with ignore-file support. The watched paths and ignored outputs need care to prevent feedback loops.
When should I choose entr?
Choose entr if you want to supply an explicit list of files to watch. You must construct the input file list for the command you want to rerun.

related