Shard Detail

tail v0.3.1

Tailing library for Crystal - get and/or follow the end of a file/IO
crystal tail file

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development


tail:
  github: j8r/tail.cr

Readme

Tail.cr

Build Status ISC

Tailing library for Crystal - get and/or follow the end of a file/IO

Inotify.cr library is used to watch files.

Installation

Add the dependency to your shard.yml:

dependencies:
  exec:
    github: j8r/tail.cr

Documentation

https://j8r.github.io/tail.cr

Examples

require "tail"

Tail::File.open "file", &.follow do |str|
  print str
end

Tail::File.open "file", &.last_lines

License

Copyright (c) 2018-2020 Julien Reichardt - ISC License