Segua
Introduction
Segua is a tool that works similar to tail -f
. The primary difference is that Segua uses a directory, not a file, as input. It then finds the file with the most recent modification time, and follows that file. After printing a line, Segua will review the directory entries to see if one has a newer modification time, and begin following that one.
Compatibility
Segua is tested on the following platforms:
- ruby-1.9.3 on Linux
That is all.
Roadmap
- Tests :P
- Do not print the whole file contents at the beginning. Act more like
tail -f
- Make the
SEGUA
lines optional. - Option for using creation time, instead of modification time
- Fix:
/home/sam/code/segua/lib/segua.rb:36:in
strip': invalid byte sequence in UTF-8 (ArgumentError)` when latest file is a Vim swap file.
Installation
gem install segua
Contributing
Please do! Contributing is easy. Please read the CONTRIBUTING.md document for more info. ... Whet exists.
Usage
Segua is meant to be used primarily as the binary script that is provided, segua
. You can also require the class itself, with
require 'segua'
segua = Segua.new("some/directory")
Versioning
Segua follows Semantic Versioning (at least approximately) version 2.0.0-rc1.
Further Reading
License
Please see LICENSE.md.