• Stars
    star
    18
  • Rank 1,169,282 (Top 24 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

file monitoring library with Crystal

WatchBird

WatchBird monitors directories and files, runs tasks automatically.

This library is strongly inspired by guard and crake. Thanks ;)

notice: WatchBird is under development and has few features yet.

Features

WatchBird is just a library (inspired by crake). You can use this library in your application. it also provides DSL module. You can use this library with DSL syntax like guard.

Installation

Add this to your application's shard.yml:

dependencies:
  watchbird:
    github: agatan/watchbird

Usage

See this code:

require "watchbird/dsl"

watch "./**/*.cr" do |ev|
  # ev.status is WatchBird::EventType.
  # can be Modify, Create and Delete.
  puts ev.status
  # ev.name is changed target's fullpath. It is an absolute path.
  puts ev.name
  # ev.dir? returns true when changed target is a directory
  puts ev.dir?
end

and execute crystal watchbird.cr.

This repository contains sample watchbird.cr file to run spec automatically.

Contributing

  1. Fork it ( https://github.com/agatan/watchbird/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • agatan Naomichi Agata - creator, maintainer

More Repositories

1

ncurses.cr

NCurses bindings for Crystal
Crystal
31
star
2

yoin

A Japanese Morphological Analyzer written in pure Rust
Rust
26
star
3

termfest

Easy TUI library written in Rust
Rust
16
star
4

timejump

Time jumper for testing in Go
Go
15
star
5

bktree

implementation of bk-tree for golang
Go
9
star
6

ctclib

A collection of utilities related to CTC
Rust
5
star
7

paper-reading-notes

読んだ論文の管理とメモ置き場
5
star
8

Building-OCR-System-TechBookFest6

WANTEDLY TECH BOOK 6 第一章 TensorFlow 2.0 でつくる文書認識システムの電子版
Jupyter Notebook
5
star
9

vim-vlack

Slack client for Vim
Vim Script
4
star
10

dl-for-dev

Jupyter Notebook
4
star
11

isucon7-qualify

ISUCON7予選: 都営三田線東急目黒線直通急行日吉行
Perl
4
star
12

minicom

Rust
3
star
13

signal-notify

Catch system signals by mpsc channel in Rust
Rust
3
star
14

squeeze

`peco` clone
Go
3
star
15

squeeze-rs

peco clone in rust
Rust
2
star
16

isucon7-final

ISUCON7 本戦
Perl
2
star
17

policy-gradient-practice

Python
2
star
18

dotfiles

my configuration files
Lua
2
star
19

vampire

Python
1
star
20

blog

Astro
1
star
21

coco

C++ Parser Combinator
C++
1
star
22

raytracer-kt

Ray Tracing in One Weekend in kotlin: https://raytracing.github.io/books/RayTracingInOneWeekend.html
Kotlin
1
star
23

tabnet-pytorch

PyTorch implementation of TabNet (https://arxiv.org/abs/1908.07442)
Python
1
star
24

vim-sort-include

Sort #include statements in Vim
Vim Script
1
star
25

crparse

Parser Combinator library for Crystal
Crystal
1
star
26

informer-pytorch

This is unofficial implementation of "Informer: Transformer Likes Informed Attention"(https://arxiv.org/abs/2012.11747v1)
Python
1
star
27

ocr-experiments

Jupyter Notebook
1
star
28

scomp

simple compiler using coco::combix
C++
1
star
29

tf-mobilenetv2

MobileNetV2 written in tensorflow, training with eager mode and estimator API
Python
1
star