gomake

command module
v0.0.0-...-4fc6743 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

README

gomake

A Makefile alternative / task runner.

Requirements

  • Go 1.22 or later

Build

  • Run go build -o gomake-bootstrap.exe
  • Run gomake-bootstrap -run all to build gomake.exe using the make.gomake file.

Usage

  • See make.gomake for an example of a gomake file.
  • Run gomake -h for a list of all commands.
Functions
# This is a comment.
task() {
    ...
}
Comparison
@(eq:"aaa","bbb")
# aaa == bbb = false

@(neq:"aaa","bbb")
# aaa != bbb = true
Directory
@(cd:"./path/to/directory/")
Operating System
# Command only runs on windows
@(os:"windows")

# Command runs on all platforms
@(os:"all")
Environment Variables
echo %{GOPATH}
# Echo ./path/to/go/bin

@(env:"GOPATH=./other/path/to/go/bin")
# Set GOPATH to ./other/path/to/go/bin during runtime.

License

See LICENSE file.

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