Jitome

Jitome is a watcher for file changing

Installation
$ go get github.com/kohkimakimoto/jijtome
Usage
Run jitome init
to create .jitome.yml
file and you should edit it.
The following is an example of configuration.
# .jitome.yml
build:
watch: '.+\.go$'
exclude: 'test\.go$'
command: 'go build'
test:
watch: '.+\.go$'
command: 'your test command'
The top level directives build
and test
are tasks that must be unique name in all of tasks.
watch
is a regular expression string to define watching files.
exclude
is a regular expression string to define excluding watching files.
command
is a executed command when it detects file changing.
You can also use TOML format to write configuration.
# .jitome.toml
[build]
watch=['.+\.go$']
command='go build'
[test]
watch=['.+\.go$']
command='your test command'
Run jitome
$ jitome
To use $JITOME_FILE
, you can get a file path that is detected changing
display_modified_file:
watch: '.+\.go$'
command: 'cat $JITOME_FILE'
Author
Kohki Makimoto kohki.makimoto@gmail.com
License
The MIT License (MIT)
Inspired by