forked from liudanking/gorm2sql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
36 lines (28 loc) · 621 Bytes
/
main.go
File metadata and controls
36 lines (28 loc) · 621 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
import (
"os"
"github.com/liudanking/gorm2sql/sqlorm"
log "github.com/liudanking/goutil/logutil"
"github.com/urfave/cli"
)
var (
// the variables will be set at compile time from golang build ldflags
service = "service"
version = "version"
buildDate = "build_date"
commitID = "commit_id"
)
func main() {
app := cli.NewApp()
app.Version = version
app.Usage = "Codoon Backend Developer work flow Swiss Army Knife"
app.EnableBashCompletion = true
app.Commands = []cli.Command{
sqlorm.SqlCommand(),
}
err := app.Run(os.Args)
if err != nil {
log.Error(err.Error())
return
}
}