-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.go
50 lines (47 loc) · 881 Bytes
/
main.go
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
44
45
46
47
48
49
50
package main
import (
"github.com/prongbang/localizegen/cmd"
"github.com/prongbang/localizegen/pkg/arguments"
"github.com/urfave/cli/v2"
"os"
)
func main() {
app := &cli.App{
Flags: []cli.Flag{
&cli.StringFlag{
Name: "platform",
Value: "",
Usage: "-platform android, ios",
},
&cli.StringFlag{
Name: "target",
Value: "",
Usage: "-target path",
},
&cli.StringFlag{
Name: "filename",
Value: "",
Usage: "-filename name",
},
&cli.StringFlag{
Name: "locale",
Value: "",
Usage: "-locale en, th",
},
&cli.StringFlag{
Name: "document",
Value: "",
Usage: "-document document-id",
},
&cli.StringFlag{
Name: "sheet",
Value: "",
Usage: "-sheet sheet-id",
},
},
Action: func(c *cli.Context) error {
return cmd.Run(arguments.Get(c))
},
}
_ = app.Run(os.Args)
}