go-autobuilder

command module
v0.0.0-...-114cd3e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 10 Imported by: 0

README

go-autobuilder

Build go projects automatically when files get modified.

Install

    go get -u github.com/gkjoyes/go-autobuilder

Features

  • Build automatically when files get modified.

  • Set environment variables for our project by just passing the env file path

  • Run custom commands while building the project. Example, pass -race flag for race condition detection.

  • Run custom commands while running. Example, this can support CLI interfaces tools like a cobra.

  • Run custom commands before each build, Example, run Go formatting tool gofmt before each build.

  • We can pass multiple commands with each option by separating with single space.

  • If a single command has any spaces need to escape this using a backward slash. eg:- gofmt\ -w\ .

Usage

  • Update PATH with GOPATH/bin

    Usage: go-autobuilder
    options:
        -p      The directory to be watch.
        -n      Project name.
        -e      Environment file path.
        -v      Prints the version.
        -b      Build only mode.
        -cc     Custom commands to run before the build.
        -bc     Custom commands to run while building.
        -rc     Custom commands to run while running.
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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