项目作者: Swift-Watch

项目描述 :
Watches over your Swift project's source
高级语言: Swift
项目地址: git://github.com/Swift-Watch/swift-watch.git
创建时间: 2017-11-26T11:24:32Z
项目社区:https://github.com/Swift-Watch/swift-watch

开源协议:

下载


swift-watch

Watches over your Swift project’s source.

Installation

  1. Build

    1. git clone https://github.com/regexident/swift-watch.git
    2. cd ./swift-watch
    3. swift build -c release
  2. Install in $PATH (such as in /usr/local/bin/):

    1. install -m +x "./.build/release/swift-watch" "/usr/local/bin/"

Usage

  1. Run $ cd /path/to/swift/package/
  2. Run $ swift watch -x="build"
  3. Modify some files in $ cd /path/to/swift/package/
  4. Watch swift-watch do its thing

Options

  1. OVERVIEW: Watches over your Swift project's source
  2. Tasks (-x & -s) are executed in the order they appear.
  3. USAGE: swift watch [options]
  4. OPTIONS:
  5. -c, --clear Clear output before each execution
  6. -d, --dry-run Do not run any commands, just print them
  7. -q, --quiet Suppress output from swift-watch itself
  8. -p, --postpone Postpone initial execution until the first change
  9. -m, --monochrome Suppress coloring of output from swift-watch itself
  10. -x, --exec=<cmd> Swift command(s) to execute on changes
  11. -s, --shell=<cmd> Shell command(s) to execute on changes
  12. -h, --help The help menu

Roadmap

  • Swift commands
  • Shell commands
  • Colorful output
  • Console clearing
  • Lazy mode
  • Delayed runs
  • Quiet mode
  • Dry-run mode
  • Ignore patterns
  • Watch patterns

Shout-out

swift-watch was directly inspired by Rust’s cargo-watch. 🙌🏻