Documentation ¶
Overview ¶
Package grimoire provides standard magefile targets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
Go = cast.DirPrepSh("go")
)
Some convenience methods
Functions ¶
func Cover ¶
func Cover() error
Cover runs tests with coverage reporting depending on your codecov reporting setup, this will just work.
func Generate ¶
func Generate() error
Generate runs go generate to generate any generated files. We check in our generated files, so this command only has to be run when you change something.
func Vendor ¶
func Vendor() error
Vendor installs dependencies into the vendor dir. While we typically use go modules for building, sometimes you want to install deps for legacy tooling to detect.
func WithSubmodule ¶
func WithSubmodule(dir string) struct{}
WithSubmodule tells our mage setup that the calling repo has a submodule. It's probably a client module. If this is called, linting, testing, and generation will be called on the main module and the submodule.
This function can be called multiple times.
Types ¶
This section is empty.