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

112 Commits

Author SHA1 Message Date
Nate Finch
2a91be369b more tweaks 2018-09-07 11:16:49 -04:00
Nate Finch
17d4c85444 small updates 2018-09-07 10:54:54 -04:00
Nate Finch
bbe9c38987 fix page layout for non-blogs 2018-09-07 10:43:57 -04:00
Nate Finch
3ad92ff223 set max width and center text for legibility 2018-09-07 10:21:21 -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
Steve Manuel
801623504d [site] minor typo fix (#82)
fix comma -> period
2017-10-23 11:32:39 -04:00
Dragos Plesca
68180ebead Fix various typos (#80) 2017-10-22 09:21:27 -04:00
Nate Finch
2060ed7853 Docs for file sources (#78) 2017-10-18 22:20:47 -04:00
Nate Finch
3c8c70c0c3 doc context targets (#77) 2017-10-18 21:46:22 -04:00
Nate Finch
0eef6fef9d add serial deps and rename DepsWithContext (#76) 2017-10-18 21:34:15 -04:00
Geofrey Ernest
fe23edb1ac Add mg.Target (#54)
* Add mg.Target

This function allows specifying files/directories as targets and returns true when the targets are met and false otherwise.

Targets are met if the ModTime of src is older than any ModTime of any  of the specified targets.

For recursive checks of directory with its file contents set recusive argument to true
2017-10-18 20:16:56 -04:00
Nate Finch
be7943de50 Support multiple targets (#65)
* support multiple targets

* fix #66

* isolated list test

* add clean target to mage's magefile
2017-10-18 10:40:37 -04:00
James S
df367221b6 context for jobs (#32)
Allows for jobs that take and call with a context.  Closes #25
2017-10-17 23:57:04 -04:00
Nate Finch
2f974307b6 fix goroot (#74) v1.0.2 2017-10-16 23:49:30 -04:00