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
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)