You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [mage homebrew formula](https://formulae.brew.sh/formula/mage).
53
+
54
+
### With Scoop (Windows)
55
+
56
+
`scoop install mage`
57
+
58
+
See [scoop](https://scoop.sh/).
59
+
60
+
### Using asdf
61
+
62
+
The [asdf version manager](https://asdf-vm.com/) is a tool for installing release binaries from Github. With asdf installed, the [asdf plugin for mage](https://github.com/mathew-fleisch/asdf-mage) can be used to install any released version of mage.
63
+
64
+
```shell
65
+
asdf plugin add mage
66
+
asdf install mage latest
67
+
asdf global mage latest
68
+
```
44
69
45
70
## Example Magefile
46
71
@@ -72,14 +97,14 @@ Run the above `Build` target by simply running `mage build` in the same director
72
97
73
98
Join the `#mage` channel on [gophers slack](https://gophers.slack.com/messages/general/) for discussion of usage, development, etc.
74
99
75
-
76
100
## Plugins
77
101
78
102
There are no plugins. You don't need plugins. It's just Go code. You can
79
103
import whatever libraries you want. Every library in the go ecosystem is a mage
80
104
plugin. Every tool you use with Go can be used with Magefiles.
81
105
82
106
## Usage
107
+
83
108
```plain
84
109
mage [options] [target]
85
110
@@ -101,7 +126,7 @@ Options:
101
126
-f force recreation of compiled magefile
102
127
-goarch sets the GOARCH for the binary created by -compile (default: current arch)
103
128
-gocmd <string>
104
-
use the given go binary to compile the output (default: "go")
129
+
use the given go binary to compile the output (default: "go")
105
130
-goos sets the GOOS for the binary created by -compile (default: current OS)
106
131
-h show description of a target
107
132
-keep keep intermediate mage files around after running
@@ -110,7 +135,7 @@ Options:
110
135
-v show verbose output when running mage targets
111
136
-w <string>
112
137
working directory where magefiles will run (default -d value)
0 commit comments