# taill
A command-line utility to tail files and watch for changes using pattern matching. Monitor files in real-time as they're updated, with support for glob patterns to watch multiple files simultaneously.
## Installation
Install from crates.io:
```bash
cargo install taill
```
Or build from source:
```bash
git clone https://github.com/zhangzhishan/taill.git
cd taill
cargo build --release
```
## Usage
```bash
taill -f <pattern>
```
### Examples
Watch all log files in current directory:
```bash
taill -f "*.log"
```
Watch specific file:
```bash
taill -f "app.log"
```
Watch files in a specific directory:
```bash
taill -f "logs/*.txt"
```
## Features
- Real-time file monitoring
- Pattern matching using glob syntax
- Automatic detection of new files matching the pattern
- Pretty-print log output using `bat`
- Efficient resource usage
- Non-recursive directory watching
## Arguments
- `-f <pattern>`: The file pattern to watch (required)
- `--help`: Display help information
- `--version`: Display version information
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Author
Zhishan Zhang (zhangzhishanlo@gmail.com)