Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
A tail-implementation in crystal.
Add this to your application's shard.yml
:
dependencies:
tail:
github: Thor77/tail.cr
require "tail"
Tail.tail "/path/to/target/file" do |new_lines|
puts new_lines
end