baywatch

Crates.iobaywatch
lib.rsbaywatch
version0.0.3
sourcesrc
created_at2023-12-02 12:50:19.5088
updated_at2024-02-23 17:13:55.348823
descriptionWatch files, execute commands on changes.
homepage
repositoryhttps://github.com/konradmalik/baywatch
max_upload_size
id1056104
size38,861
Konrad Malik (konradmalik)

documentation

README

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

Commit count: 30

cargo fmt