github.com/rzajac/mage@v1.14.1/bootstrap.go (about) 1 //+build ignore 2 3 package main 4 5 import ( 6 "os" 7 8 "github.com/magefile/mage/mage" 9 ) 10 11 // This is a bootstrap builder, to build mage when you don't already *have* mage. 12 // Run it like 13 // go run bootstrap.go 14 // and it will install mage with all the right flags created for you. 15 16 func main() { 17 os.Args = []string{os.Args[0], "-v", "install"} 18 os.Exit(mage.Main()) 19 }