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

63 Commits

Author SHA1 Message Date
Nate Finch
2f974307b6 fix goroot (#74) v1.0.2 2017-10-16 23:49:30 -04:00
Davor Kapsa
5cc3565e26 travis: update go versions (#67) 2017-10-16 23:45:42 -04:00
Jason Hancock
3c5af14840 website: typo on dependencies page. g should depend on h, not on itself (#73) 2017-10-16 12:59:28 -04:00
Nate Finch
e66e3df1f2 fix windows zip and default to draft (#71) v1.0.1 2017-10-15 23:52:57 -04:00
Nate Finch
94bef76dc9 fix goroot build and use goreleaser (#70) 2017-10-15 23:37:13 -04:00
Marcin Białoń
0c6ba041cf log targets being run when mage is run with -v (#44) (#64) 2017-10-13 20:11:07 -04:00
Nate Finch
61c945fcb0 passthrough stdin (#63)
passthrough stdin from mage to running magefiles so that commands can get input from user.
2017-10-13 12:45:15 -04:00
Nate Finch
a12fd02e5b fix #60 (#61)
fix it so that mage --help doesn't print help twice
v1
2017-10-13 10:58:02 -04:00
Marcel Molina
8cb519c584 Typo s/ths/this/ (#59) 2017-10-13 10:45:52 -04:00
Nate Finch
a0bd4ffabe update dep docs (#53) 2017-10-07 14:16:05 -04:00
Nate Finch
89c07830cb Make site suck less (#51)
* much nicer site layout
2017-10-06 21:08:15 -04:00
Todd Rafferty
ca568f7054 Issue #30 - Added env check "MAGE_VERBOSE" to mage. (#43)
* Added  check to mage.

* Removed .vscode

* Moved env verbosity check to parse, fixed test.
2017-10-05 16:26:28 -04:00
Ryan Boehning
ff53e84719 Fix broken godoc link (#49)
godoc.org/github.com/mage/mage -> godoc.org/github.com/magefile/mage/mage
2017-10-05 14:03:33 -04:00
Nate Finch
b736696b24 update docs about librarification (#47) 2017-10-05 13:04:37 -04:00
Nate Finch
3c08a4dbfe Prevent multiple targets (#45)
* fix broken arg parsing, prevent multiple targets, add tests for both
2017-10-05 11:35:15 -04:00
Nate Finch
0c1c4dce2f Librarify mage (#41)
* Librarify mage

We can now use mage as a pure library, not just as a main function.
This makes test easier in many ways and opens up new ways to use mage.
2017-10-05 10:08:27 -04:00
Andrew Chilton
1cd74f649e present the commands in camelCase - fixes #37 (#39) 2017-10-04 20:55:18 -04:00
Nate Finch
466a672393 fix title (#40) 2017-10-04 13:07:30 -04:00
Nate Finch
f493649a1d very initial website (#36)
add initial webpage code
2017-10-04 10:48:20 -04:00
Andrew Chilton
1e0aa2eb60 prepend error output with 'Error:' (#31)
fixes #27
2017-10-03 20:45:41 -04:00
Cameron Sparr
73b00205b5 Make demo thumbnail hi-res (#35) 2017-10-03 12:40:08 -04:00
Nate Finch
41a9bd8922 add version flag, add magefile for building (#29) 2017-10-02 23:07:19 -04:00
Nate Finch
8fa000d89f Helpers galore (#26)
* Helpers galore

This commit adds helper functions that should be commonly needed
by many magefiles. It includes command execution handlers as well
as error handlers.

This commit also removes the only two non-stdlib dependencies in
the codebase.  Since mage will likely be vendored into a repo,
it would be nice to avoid cluttering the vendor directory with
dependencies that are only for the build script.
2017-10-02 22:22:21 -04:00
James S
48c8b7cc91 Added -keep flag for mage intermediate file (#23)
added --keep that skips removing the intermediate mage file
2017-10-01 23:00:18 -04:00
Nate Finch
471dd15266 Update README.md 2017-10-01 21:11:33 -04:00
Nate Finch
2886f9132f add logo 2017-10-01 21:10:27 -04:00
Nate Finch
d674cfaedd minor cleanup (#22)
* some minor cleanup
2017-09-29 18:24:23 -04:00
James S
84e8285849 Add -init to create a sample magefile.go (#16)
* * Added -init flag
* Altered magefile() to return on zero found so we can toggle creating when -init flag set
- Template for magefile.go added
- Generates a magefile.go in the CWD

* Made the example template more inspiring

* updated readme and added example of Default target

* * use os functions instead of dropping to shell comands as appropriate
* order of imports is alpha
* added note on Default for behaviour if not set

* added -init to flags section of readme
2017-09-29 14:56:35 -04:00
Nate Finch
6733cf3d2f hash mainfile template with files (#18)
This change adds the mainfile template to the list of things we
hash to create the compiled binary name. This ensures that we
don't have to remember to bump the mageVer when we change the
template, it'll just always auto-update. mageVer only needs
to change if there's processing that will produce different output
from the template without the template actually changing
2017-09-29 11:20:51 -04:00
Nate Finch
8b6c4f7a9d fixes and a test (#15)
fixes #13 

The bug was that non-stdlib imports were failing to be found by the parser.

The problem is that the default importer only imports from compiled files.  But we specifically want to import from source files. For go 1.9 this is easy, go/importer has an importer.For that takes "source".  However, previous to go 1.9, this doesn't exist.  To keep the code working in previous versions, we just grab the code from 1.9's srcimporter and include it in the build, and then conditionally compile in that code if we're not running on go 1.9 or greater (if we are running on go 1.9, we can use the stdlib version, which is better because it'll get fixes etc automatically).

Also added a bunch of tests to ensure that this code won't break again without a test failing.
2017-09-29 09:38:37 -04:00
Nate Finch
43abfd8668 add tests for gofmt and go vet (#12) 2017-09-28 16:29:31 -04:00
Nate Finch
f36b2e3729 travis badge 2017-09-28 14:27:50 -04:00
Nate Finch
9eb87c23d8 travis config (#11) 2017-09-28 14:25:13 -04:00
Nate Finch
231def328f add contributing 2017-09-28 13:43:53 -04:00
Nate Finch
ad4762eaab Remove go 1.9 dependency (#10)
stop using sync.map and add error helpers
2017-09-28 12:21:10 -04:00
Nate Finch
571f4122da plugins and vendor 2017-09-27 13:02:23 -04:00
Nate Finch
9dc8074005 implments configurable default targets (#7) 2017-09-27 00:05:03 -04:00
Nate Finch
05e3d7baad Update README.md 2017-09-25 14:04:48 -04:00
Nate Finch
4d26fd36df Update README.md 2017-09-25 12:52:56 -04:00
Nate Finch
9786d8b3ce Update README.md 2017-09-25 12:37:44 -04:00
Nate Finch
711f2bc51e Update README.md 2017-09-25 12:19:15 -04:00
Nate Finch
bf063609a0 add slack channel 2017-09-25 11:34:52 -04:00
Nate Finch
108d15daed implement dependency trees (#4)
This code creates a new library 'mg' that lives under the mage
repo, which contains a function, Deps, that lets a function
declare it has dependencies on other functions. These functions
will be run in parallel, and may have their own dependencies.
2017-09-25 11:32:34 -04:00
Nate Finch
a89147d2eb Clean up wording 2017-09-25 08:46:51 -04:00
Nate Finch
d542e30f80 exit on panic even if no exitcode specified 2017-09-24 07:20:01 -04:00
Nate Finch
e04281ba3c zero-install option 2017-09-23 22:09:20 -04:00
Nate Finch
0c5575f423 Merge pull request #3 from camathieu/patch-1
README.md typo
2017-09-23 20:27:31 -04:00
Charles-Antoine Mathieu
5784bdd57d README.md typo 2017-09-23 15:23:56 +02:00
Nate Finch
9679a13891 add demo 2017-09-22 22:40:49 -04:00
Nate Finch
b3d833498f adding dep and vendor 2017-09-22 20:18:57 -04:00