tail

Tailing library to get and/or follow the end of a file/IO tail file
0.3.0 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-2019 Julien Reichardt - ISC License

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

Authors

Dependencies 1

  • inotify ~> 1.0.0
    {'github' => 'petoem/inotify.cr', 'version' => '~> 1.0.0'}

Development Dependencies 0

Dependents 1

Last synced .
search fire star recently