1
0
mirror of https://github.com/magefile/mage.git synced 2026-10-24 06:19:18 +03:00
Commit Graph

123 Commits

Author SHA1 Message Date
Nate Finch
b88338d490 make sure we return the same error the original dep function returned 2018-09-16 09:11:47 -04:00
Nate Finch
c7b4ff9e70 add code so mg.Deps understands namespaces (#163)
* add code so mg.Deps understands namespaces

* unexport all the functype stuff
2018-09-15 23:32:08 -04:00
Gil Raphaelli
832a425b45 consider missing cache dir cleaned (#162)
consider missing cache dir cleaned
2018-09-14 22:19:31 -04:00
Nate Finch
c01f199512 Add -d flag to set the working directory (#159)
* add -d flag to set the directory in which to run.
2018-09-12 00:03:05 -04:00
mathew
97989d07a9 Add sh.Copy (#130)
Add sh.Copy function to easily copy files.
2018-09-11 16:11:04 -04:00
Nate Finch
8288ed6198 v1.4.0 release announcement 2018-09-11 10:09:51 -04:00
Hanzei
ecc7670db5 Fix error in v1.3.0 blog post (#158) 2018-09-11 08:56:43 -04:00
Nate Finch
49bafb86c8 Go Modules Test (#157)
* Add a go modules test
* Fix mage module support
v1.4.0
2018-09-11 00:11:15 -04:00
Nate Finch
0fe6966d78 ensure we enforce semver in releases (#156) 2018-09-10 22:37:09 -04:00
Nate Finch
276737a086 massive cleanup using go list (#153)
Simplify the code tremendously by using 'go list' instead of go/build, and remove the use of go/types to determine types (since we only care about a couple canonical types).
2018-09-10 18:26:41 -04:00
James Lucktaylor
75279a9801 Fixed up a few grammar/formatting bits (#155) 2018-09-10 13:34:14 -04:00
Nate Finch
b1a215cf75 add link to release name 2018-09-07 21:54:07 -04:00
Nate Finch
f2b9062373 release 1.3.0 post 2018-09-07 21:48:40 -04:00
Nate Finch
35061ba2af fix dates 2018-09-07 11:33:03 -04:00
Nate Finch
a6b2986fdd Website tweaks (#151)
Website tweaks
2018-09-07 11:19:28 -04:00
Nate Finch
89e78b10b7 on versions 2018-09-07 10:01:07 -04:00
Nate Finch
3b186ec68d add bullhorn to blog link 2018-09-06 22:59:42 -04:00
Nate Finch
9807f1f388 remove explicit blog menu thingy 2018-09-06 22:53:34 -04:00
Nate Finch
2b5e82d3c6 add blog posts 2018-09-06 22:51:28 -04:00
Nate Finch
bd5486e7f9 Add support for choosing what binary to run with mage (#146)
* 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
v1.3.0
2018-09-06 21:23:00 -04:00
Nate Finch
e592274bed new demo video 2018-09-05 23:30:37 -04:00
Nate Finch
b0bfbc25e9 don't default to v2 anymore (#148) v1.2.4 2018-09-02 23:25:33 -04:00
Nate Finch
6837488948 add go.mod (#145) 2018-09-01 23:41:05 -04:00
Nate Finch
0cb9a96c86 Use go/build from 1.11 to support modules (#144)
* make 1.10 and 1.11 build directories

* now we switch which build package to use based on the version of go we're building with.
2018-09-01 23:37:58 -04:00
Nate Finch
01342b9221 Add debug flag (#143)
* add a bunch of debug logging
2018-08-31 08:45:43 -06:00
Nate Finch
b3530f3587 Fix dependency logging (#141)
we were logging outside the sync.once which means we'd log
even if we didn't actually run the function
2018-08-28 14:47:06 -06:00
Nate Finch
253ba37b17 move checkdupes into parse (#138)
by putting checkdeps into parse, it gets checked by the parse tests
and it just a cleaner place to put it.
2018-08-26 10:12:01 -04:00
fazal
b853551298 Check for duplicates with namespace prefixed if any (#137)
Check for duplicates with namespace prefixed if any
2018-08-26 09:11:00 -04:00
Nate Finch
cfd05cd422 Output package docs with target list (#134)
* output package doc in mage -l

* add go 1.10 and 1.11 to test harness
2018-08-25 10:21:58 -04:00
Nate Finch
198454a81e fix target library (#131)
* fix target library, specifically handling of missing target files
2018-08-24 09:44:31 -04:00
Eric Gourlaouen
7e35744357 Log dependencies in runDeps (#128)
mg: Log dependencies in runDeps
2018-08-20 11:03:52 -04:00
Sunny
80d390cfb9 usage: separate commands and options (#96)
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.
2018-07-31 14:56:11 -04:00
Nate Finch
0b004e8e5c Fix panic in 126 (#127)
fix #126
2018-07-23 16:50:53 -04:00
Nate Finch
3ff5dec7c0 docs for namespaces (#125)
docs for namespaces
2018-07-22 22:14:59 -04:00
Ryan Faerman
c807db8c20 Add namespace/subcommand support to Mage (#121)
Introduce an exported Namespace type in mg and use it to generate new targets.
2018-07-22 21:23:34 -04:00
Eric Gourlaouen
0ef06c8c9a Fix doc of mg.Fatalf (#120)
Indicate the proper origin of the exit code
2018-07-05 12:11:26 -04:00
James Nugent
5e51f9ad1e Document requiring mage for 0-install with dep (#116) 2018-04-12 11:54:34 -04:00
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
Vincent Rischmann
81dbe7074b Fix typo in the targets page (#105) 2018-02-12 11:24:26 -05:00
Bob Henkel
ecff8738c3 Fix broken link (#103) 2018-01-29 14:28:23 -05:00
Zander Mackie
d4ed947d0e Teach mage clean (#97)
* Refactor 'commands' into enum

* implement clean

* Also cleanup command switch to bail on unknown commands

* Update generated Commmand strings
2018-01-23 16:45:40 -05:00
Mark Ayers
0e9ea17fbe Add explicit return statements (#99) 2018-01-22 13:34:14 -05:00
Sunny
63768081a3 parse: sanitize function doc synopsis (#95)
This change adds `sanitizeSynopsis()` function to perform basic
sanitization on the synopsis. If synopsis begins with the function name, it
removes the function to avoid repeating words.
2017-12-29 07:42:55 -05:00
Nate Finch
acc8bebbfe Avoid name conflicts with magefiles (#93)
* Avoid name conflicts with magefiles

Previously, the generated mage_output_file contained a few helper functions and variables.
However, these had the potential to conflict with names of things in someone's magefile.
Now, all those names are safely stowed away inside func main, so there can be no conflict.

* goos does not work that way
2017-12-21 22:12:01 -05:00
Marcin Białoń
898127b487 Support for aliases (#58) (#90) 2017-11-06 23:42:24 -05:00
rougepied
a693abc2e1 Update _index.en.md (#91)
typo
2017-11-01 19:02:03 -04:00
Nate Finch
bf7f17a50d fix mage install (#89)
fix mage install

Go install -a can fail if goroot is not writeable, so use go build instead.
2017-10-27 14:19:35 -04:00
Nate Finch
accd8ef3f5 update logo with text (#87) 2017-10-26 10:32:34 -04:00
Nate Finch
aefb6e8744 new font for the logo (#86) 2017-10-25 18:38:50 -04:00
Nate Finch
58812e2230 Enable bootstrap build (#85)
* 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
2017-10-25 10:11:34 -04:00