-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.go
More file actions
37 lines (34 loc) · 711 Bytes
/
main.go
File metadata and controls
37 lines (34 loc) · 711 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 (
"github.com/dung13890/deploy-tool/cmd"
"github.com/dung13890/deploy-tool/config"
"github.com/urfave/cli/v2"
"log"
"os"
"time"
)
func main() {
cli.AppHelpTemplate = config.AppHelpTemplate
cli.CommandHelpTemplate = config.CommandHelpTemplate
ping := cmd.NewPing()
deploy := cmd.NewDeploy()
init := cmd.NewInit()
shell := cmd.NewShell()
app := &cli.App{
Name: "doo",
Usage: "Deployment for your project",
HelpName: "doo",
Compiled: time.Now(),
EnableBashCompletion: true,
Commands: []*cli.Command{
init,
ping,
deploy,
shell,
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}