- Notifications
You must be signed in to change notification settings - Fork2
regexident/swift-watch
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Watches over your Swift project's source.
Build
git clone https://github.com/regexident/swift-watch.gitcd ./swift-watchswift build -c release
Install in
$PATH
(such as in/usr/local/bin/
):install -m +x "./.build/release/swift-watch" "/usr/local/bin/"
- Run
$ cd /path/to/swift/package/
- Run
$ swift watch -x="build"
- Modify some files in
$ cd /path/to/swift/package/
- Watch
swift-watch
do its thing
OVERVIEW: Watches over your Swift project's sourceTasks (-x & -s) are executed in the order they appear.USAGE: swift watch [options]OPTIONS: -c, --clear Clear output before each execution -d, --dry-run Do not run any commands, just print them -q, --quiet Suppress output from swift-watch itself -p, --postpone Postpone initial execution until the first change -m, --monochrome Suppress coloring of output from swift-watch itself -x, --exec=<cmd> Swift command(s) to execute on changes -s, --shell=<cmd> Shell command(s) to execute on changes -h, --help The help menu
- Swift commands
- Shell commands
- Colorful output
- Console clearing
- Lazy mode
- Delayed runs
- Quiet mode
- Dry-run mode
- Ignore patterns
- Watch patterns
swift-watch was directly inspired by Rust'scargo-watch. 🙌🏻