-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
43 lines (35 loc) · 805 Bytes
/
main.go
File metadata and controls
43 lines (35 loc) · 805 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
38
39
40
41
42
43
package main
import (
"log"
"os"
"github.com/urfave/cli/v2"
"create-app-cli/commands/compress"
"create-app-cli/commands/generate"
"create-app-cli/commands/new"
"create-app-cli/commands/serve"
)
var app = &cli.App{
Name: "create-web-app",
Usage: "Create a template web ready to work",
Description: "Generator of structures for web static's",
Version: "0.1",
Authors: []*cli.Author{
{Name: "Gabriel Martinez", Email: "gabmart1995@gmail.com"},
{Name: "Alfonso Martinez", Email: "martalf1987@gmail.com"},
},
}
// constructor del modulo
func init() {
app.Commands = []*cli.Command{
&new.NewCommand,
&generate.GenerateCommand,
&serve.ServeCommand,
&compress.CompressCommand,
}
}
func main() {
err := app.Run(os.Args)
if err != nil {
log.Fatalln(err)
}
}