Skip to content

A Haxe utility that watches for file system changes, and runs a command after each change.

License

Notifications You must be signed in to change notification settings

BowlerHatLLC/hunter

Repository files navigation

Hunter file watcher for Haxe

A Haxe utility that watches for file system changes, and runs a command after each change.

Installation

Use the haxelib install command to download Hunter.

haxelib install hunter

Requires Haxe 4.2 or newer.

Command Line

Use the haxelib run command to launch Hunter. Pass in the command to run, followed by directory paths to watch, and any desired options. If no directories are specified, the current working directory will be used.

haxelib run hunter <command> [...directories] [OPTIONS]

Options

The following options can be added to the haxelib run hunter command to customize its behavior.

  • --interval seconds

    specify the polling, in seconds (default: 0.2)

  • --wait seconds

    specify an additional delay after running the command, in seconds (default: 0.0)

  • --ignoreDotFiles

    specify if changes to dot files are ignored (default: false)

  • --help

    print usage instructions

Example:

haxelib run hunter "haxe compile.hxml" src --interval 0.5 --wait 1.0 --ignoreDotFiles

About

A Haxe utility that watches for file system changes, and runs a command after each change.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages