grape

command module
v0.0.0-...-c518be0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 15 Imported by: 0

README

🍇 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 🚧

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