Skip to content

AIRTucha/stage

Repository files navigation

Stage

Stage is a command-line tool to organise development scripts and run sequences of commands on file change.

Stage can be installed as a Golang package.

go get github.com/AIRTucha/stage

It executes commands from the stage.yaml file located on a current directory.

The file can contain the _config property with an array of globes to watch. Debounce time to avoid circular rebuilds and command to run steps.

Each action can be defined as a property with an array of steps. Steps are executed sequentially.

_config: 
  watch: 
    - '*.go'
    - 'src/*'
  debounce: 1000
  engine: '/bin/bash'
test:
  - echo "ok"
  - echo "ok2"
  - ping -c 4 google.com
  - apt-get
  - echo "ok3"
run:
  - go run *.go test -w
build-run:
  - go build -o bin/stage
  - ./bin/stage -watch test
install:
  - go install .
export:
  - PATH=$PATH:/Users/alextukalo/go/bin/

Known limitations

Stage does not support Windows. Implementation of Windows support is very welcome.

About

Command-line action runner for Golang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy