tournette

command module
v0.0.0-...-3a27f08 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: BSD-2-Clause Imports: 11 Imported by: 0

README

Tournette

Tournette: Gopher Wheel in Ancien French

hamster

This is (yet another) simple utility to rebuild/reload your Go program when source changes.

Features:

  • Simple, only one binary, no configuration file
  • Very simple, only one source file, change as you want
  • Flexible, not litmited to standard go commands
Installation:
go get github.com/juju2013/tournette
Simple usage:
cd your_project_path
tournette

This will compile your project by using go build . and then launch the result binary if successful.

Any change in your source will stop the current program, compile it and relaunch it again.

Advanced usage:
cd $HOME/projects/apolloXI/build
TOURNETTE_REGEX="^.*\.(go|py)$" \
TOURNETTE_BUILDCMD=./build.sh
TOURNETTE_RUNCMD=/ksc/SaturnV.sh \
TOURNETTE_DIR=$HOME/projects/apolloXI/src \
TOURNETTE_INTERVAL=1282 \
tournette \
-all -these options -go -to your_program

That means: any go or python source change in $HOME/projects/apolloXI/src will be detected within 1.282 seconds and will trigger $HOME/projects/apolloXI/build/build.sh to compile and then launch /ksc/SaturnV.sh with -all -these options -go -to your_program as arguments.

Copyright (C) 2019 by juju2013@github, under BSD license (see LICENSE file), image credit: Doenertier82

Documentation

Overview

(yet another) simple utility to rebuild/reload your Go program when source changes Copyright 2019 by juju2013@github

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL