taill 0.1.5

A command-line utility to tail files and watch for changes using pattern matching
taill-0.1.5 is not a library.

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:

cargo install taill

Or build from source:

git clone https://github.com/zhangzhishan/taill.git

cd taill

cargo build --release

Usage

taill -f <pattern>

Examples

Watch all log files in current directory:

taill -f "*.log"

Watch specific file:

taill -f "app.log"

Watch files in a specific directory:

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 file for details.

Author

Zhishan Zhang (zhangzhishanlo@gmail.com)