Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hallerpatrick/entrs

Port of entr in Rust
https://github.com/hallerpatrick/entrs

Last synced: 28 days ago
JSON representation

Port of entr in Rust

Awesome Lists containing this project

README

        

# Entrs

Entrs is a port of the classic entr utility

Entr is a file watch utilty that executes provided comments on file changes

## Installation

### Manual

```
git clone https://github.com/HallerPatrick/entrs.git && cd entrs

# Run directly or
cargo run

# Build binary (in ./target/release/entr )
cargo build --release

```

### Cargo

```
cargo install entrs
```

### Pre-Build Binary

Can be found in Releases

## Usage

```
USAGE:
entrs [FLAGS] [utility]...

ARGS:
...

FLAGS:
-c Clear screen before executing utility
-h, --help Prints help information
-p Execute utility first after files have changed
-r Watch for file changes recursively
-u Evaluate the first argument using the interpreter specified by the SHELL environment variable
-V, --version Prints version information
```

### Example

Rebuild the cargo project after file saving and clear the screen before executing `cargo build`

```

$ ls | entr -c cargo build

```