commit 1
This commit is contained in:
22
magefile.go
Normal file
22
magefile.go
Normal file
@@ -0,0 +1,22 @@
|
||||
//go:build mage
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/magefile/mage/sh"
|
||||
)
|
||||
|
||||
// Build builds the binary
|
||||
func Build() error {
|
||||
return sh.RunV("go", "build", "-o", "gsquash", "main.go")
|
||||
}
|
||||
|
||||
// Install installs the binary
|
||||
func Install() error {
|
||||
return sh.RunV("go", "install")
|
||||
}
|
||||
|
||||
// Test runs the tests
|
||||
func Test() error {
|
||||
return sh.RunV("go", "test", "./...")
|
||||
}
|
||||
Reference in New Issue
Block a user