Skip to content

Build go projects automatically when files get modified.

License

Notifications You must be signed in to change notification settings

gkjoyes/go-autobuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Build go projects automatically when files get modified.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages