Skip to content

konradmalik/baywatch

Folders and files

NameName
Last commit message
Last commit date
Oct 7, 2024
Dec 4, 2023
Nov 30, 2023
Nov 30, 2023
Nov 30, 2023
Mar 3, 2025
Mar 3, 2025
Nov 30, 2023
Dec 5, 2023
Feb 26, 2025
Jun 14, 2024

Repository files navigation

crates.io Actions Status Actions Status

baywatch

Watch files and execute commands if they change.

Usage

$ bwatch --help

Simplest example:

$ bwatch -- ls -lah

Assumptions

  • simple codebase and usage
  • sane defaults
    • using local gitignore properly
    • ignores change events that happened since starting the scheduled command (not running tests 10 times if files changed 10 times)
    • streams stdout and stderr
  • tested and used only on Linux and Darwin, may or may not work on Windows

Known problems

  • on linux, using Neovim, when saving a file it gets deleted and recreated. This makes it impossible to track concrete files (via --path argument). It's advised instead to track whole folders.

Installation

$ cargo install --locked baywatch

or

Use the provided package via flake

or

$ nix build

or

$ nix run

Similar to