123456789101112131415161718192021222324 |
- package main
- import (
- "github.com/magefile/mage/sh"
- )
- var (
- Default = Build
- )
- func Generate() (err error) {
- return sh.RunV("cmg", "gen", "./...")
- }
- func Build() error {
- return sh.RunV("go", "build", "./cmd/presence")
- }
- func Test() error {
- return sh.RunV("go", "test", "-cover", "-race", "./...")
- }
|