jitome

command module
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2015 License: MIT Imports: 15 Imported by: 0

README

Jitome

logo.png

Jitome is a watcher for file changing

jitome.gif

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL