* GOOS and GOARCH fixes
this fixes#169 - mage now ignores GOOS and GOARCH in the environment
when building its own binaries. The exception is if you use -goos or -goarch
when running -compile.
* add support for choose which go binary to run
* make the compiler configurable
* add a cli flag and update docs
* use go version as part of the binary hash
* add go version to what we display in mage -version
usage: separate commands and options
This change separates command and option flags in the usage by replacing
`flag.PrintDefaults()` with `text/tabwriter` and flag lookups iterating
over command and option flags.
This change moves -l and -h into commands. With this, both option and
commands have `-h` with different descriptions.
* 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`
* Enable bootstrap build
Added a bootstrap.go file that can be used with go run to install mage even if you don't
have mage intalled.
Update readme and main website page with better install directions
We now create the context in the mainfile, so as to remove any dependency on
the mg library, since the user may have an older version vendored, that doesn't
have the Context function.
ALso added a test to ensure that we don't import any non-stdlib libraries in the
mainfile to avoid problems like this in the future.