Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidhfrankelcodes/rwatch
https://github.com/davidhfrankelcodes/rwatch
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidhfrankelcodes/rwatch
- Owner: davidhfrankelcodes
- Created: 2023-07-01T19:34:06.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-07-23T23:52:23.000Z (11 months ago)
- Last Synced: 2024-01-27T11:00:58.636Z (5 months ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- cli-apps - rwatch - A Rust re-implementation of the classic Unix watch command that allows you to run a command repeatedly and watch its output. (<a name="file-watch"></a>File watching for changes)
- awesome-cli-apps - rwatch - A Rust re-implementation of the classic Unix watch command that allows you to run a command repeatedly and watch its output. (<a name="file-watch"></a>File watching for changes)
README
# rwatch
`rwatch` is a command-line utility written in Rust that allows you to run a command repeatedly and watch its output. It's a Rust re-implementation of the classic Unix `watch` command.
## Features
- Run a given command repeatedly
- Clear screen between command runs
- Customizable interval for command execution
- Handle user interruption gracefully
- Cross-platform## Installation
### Building from source
1. Make sure you have Rust installed. If not, install Rust using rustup:
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```2. Clone this repository:
```sh
git clone https://github.com/davidhfrankelcodes/rwatch.git
cd rwatch
```3. Build and install `rwatch`:
```sh
cargo build --release
cargo install --path .
```4. The `rwatch` command should now be available. Try running `rwatch --help` for usage information.
## Usage
```sh
rwatch [interval]
```### Example
To watch the contents of a directory change, you might use:```sh
rwatch "ls -l" 1
```## Contributing
Contributions to `rwatch` are welcome! Please read the contributing guidelines before submitting a pull request.## License
`rwatch` is licensed under the [MIT License](https://opensource.org/license/mit).