Skip to content

Commit

Permalink
Merge pull request #5 from mo3et/feat/args
Browse files Browse the repository at this point in the history
feat: support args when mage build.
  • Loading branch information
skiffer-git authored Nov 13, 2024
2 parents 288c5fa + 31984e4 commit 91cb47e
Show file tree
Hide file tree
Showing 6 changed files with 447 additions and 226 deletions.
16 changes: 14 additions & 2 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@
package main

import (
"github.com/openimsdk/gomake/mageutil"
"flag"
"os"

"github.com/openimsdk/gomake/mageutil"
)

var Default = Build

// Build support specifical binary build.
//
// Example: `mage build openim-api openim-rpc-user seq`
func Build() {
mageutil.Build()
flag.Parse()

bin := flag.Args()
if len(bin) != 0 {
bin = bin[1:]
}

mageutil.Build(bin)
}

func Start() {
Expand Down
Loading

0 comments on commit 91cb47e

Please sign in to comment.