Documentation
¶
Overview ¶
Package magex adds several utility functions to the mage (https://magefile.org) build tool
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeInstallTool ¶
MaybeInstallTool checks to see if a go command line tool is installed, and if not, it installs it.
func MaybeInstallToolToDestination ¶ added in v0.0.4
func MaybeInstallToolToDestination( cmdName, modulePath, version, destination string, ) (string, error)
MaybeInstallToolToDest checks to see if the tool command exists at the destination, and if not, attempts to install it.
func ModuleVersion ¶
ModuleVersion pulls the version of `name` from "./go.mod" This is useful in combination with MaybeInstallTool when the tool is paired with a module that is used in the code, for example, templ (https://templ.guide/) where you import the module, but it also has a cli codegen command and they need to be the same version. This allows your go.mod file to be the source of truth.
Types ¶
This section is empty.