tail

Tailing library to get and/or follow the end of a file/IO tail file
0.3.1 Latest release released
j8r/tail.cr
10 2
Julien Reichardt

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

tail:
  github: j8r/tail.cr
  version: ~> 0.3.1
License ISC
Crystal none

Authors

Dependencies 1

  • inotify master
    {'branch' => 'master', 'github' => 'petoem/inotify.cr'}

Development Dependencies 0

Dependents 1

Last synced .
search fire star recently