-
Add the dependency to your
shard.yml
:dependencies: fswatch: github: bcardiff/crystal-fswatch
-
Run
shards install
require "fswatch"
FSWatch.watch "." do |event|
pp! event
end
sleep 10 # keep main fiber busy to prevent exiting
- Fork it (https://github.com/bcardiff/crystal-fswatch/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Brian J. Cardiff - creator and maintainer