/grape

tiny cli to run commands on file change.

Primary LanguageGoMIT LicenseMIT

🍇 grape cli

Tiny CLI for running commands on file change. Inspired by nodemon.

Install

Download any of the binaries or :

go get -u get github.com/noelukwa/grape

or

go install github.com/noelukwa/grape

Usage

In your working directory, create a grape.json file.

grape init

Create a namespace or run the default with:

grape run dev

Watch and run commands without a config file:

grape on -e ".*go" -c "go run main.go" 

Config Format

{
  "dev": {
    "watch": [
      ".*go"
    ],
    "command": "go run main.go"
  },
  "build": {
    "watch": [
      ".*go"
    ],
    "command": "go build -o main main.go"
  }
}
  • watch is an array of regex patterns to match files to watch
  • command is the command to run when a file is changed
  • buid,dev are namespaces to run commands and can be any string

🚧 Under development 🚧