1
0
mirror of https://github.com/magefile/mage.git synced 2026-10-24 06:19:18 +03:00
Files
mage/mage/command_string.go
James Nugent 771ebed3d6 Add -compile flag to compile a static binary (#115)
* meta: Ignore Goland project files

* Add `-compile` flag to compile a static binary

This commit adds a new flag, `-compile`, which takes the argument of the
path to which to compile a static binary, but not execute it. This is
useful if you wish to run tasks on a machine which does not have Go
available.

* Add documentation for the -compile flag

* Imply `-force` with `-compile`
2018-04-11 13:03:07 -04:00

17 lines
419 B
Go

// Code generated by "stringer -type=Command"; DO NOT EDIT.
package mage
import "strconv"
const _Command_name = "NoneVersionInitCleanCompileStatic"
var _Command_index = [...]uint8{0, 4, 11, 15, 20, 33}
func (i Command) String() string {
if i < 0 || i >= Command(len(_Command_index)-1) {
return "Command(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Command_name[_Command_index[i]:_Command_index[i+1]]
}