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

121 Commits

Author SHA1 Message Date
Nate Finch
80b318a09b add appveyor badge 2018-09-10 18:15:56 -04:00
Nate Finch
b6d02e1c23 Merge branch 'go-list' of github.com:magefile/mage into go-list 2018-09-10 17:00:44 -04:00
Nate Finch
880d4684a2 remove -find for backwards compatibility 2018-09-10 17:00:06 -04:00
Nate Finch
4fbb25ed7c Merge branch 'master' into go-list 2018-09-10 16:18:00 -04:00
Nate Finch
3672270b15 add testdata 2018-09-10 15:49:06 -04:00
Nate Finch
14e3ac8b0c all tests passing 2018-09-10 15:24:00 -04:00
James Lucktaylor
75279a9801 Fixed up a few grammar/formatting bits (#155) 2018-09-10 13:34:14 -04:00
Nate Finch
1e324cddeb tweaks 2018-09-09 09:05:36 -04:00
Nate Finch
daa9016f52 simplify things by using go list 2018-09-08 10:08:13 -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
James S
ab3ca2f6f8 Cleaned up use of mage/types package (#81)
* * Removed stale type declarations in parse.
* Updated parse and mg to make better use of types package.
* Added function to types package to test for valid function.
* Added function to to types package to wrap a valid FuncType as the
* most greedy of FuncType

* renamed IsFuncType and refactored to return error instead of bool. Made the return value of FuncTypeWrap more clear.

* removed unused type func declarations
2017-10-24 22:12:37 -04:00
Nate Finch
9d728eff80 remove mg dep from mainfile (#84)
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.
2017-10-24 21:48:32 -04:00