forked from pombreda/vessel
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmain.go
More file actions
37 lines (28 loc) · 696 Bytes
/
main.go
File metadata and controls
37 lines (28 loc) · 696 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
37
package main
import (
"fmt"
"os"
"github.com/codegangsta/cli"
"github.com/containerops/vessel/cmd"
"github.com/containerops/vessel/setting"
)
func main() {
if err := setting.InitConf("./conf/global.yaml", "./conf/runtime.yaml"); err != nil {
fmt.Printf("Read config error: %v", err.Error())
return
}
cmdWeb := cmd.GetCmdWeb()
app := cli.NewApp()
app.Name = setting.Global.AppName
app.Usage = setting.Global.Usage
app.Version = setting.Global.Version
app.Author = setting.Global.Author
app.Email = setting.Global.Email
app.Commands = []cli.Command{
// cmd.CmdWeb,
cmdWeb,
// cmd.CmdDatabase,
}
app.Flags = append(app.Flags, []cli.Flag{}...)
app.Run(os.Args)
}