-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.go
More file actions
21 lines (16 loc) · 683 Bytes
/
Copy pathmain.go
File metadata and controls
21 lines (16 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package main
import (
"flag"
"os"
marvin "github.com/tompston/gomarvin/marvin"
)
func main() {
// go run main.go -h
args := os.Args[1:]
flags := &marvin.Flags{}
flag.BoolVar(&flags.DangerousRegen, "dangerous-regen", false, "Regenerate everything. If set to true, init server will be regenerated and all previous changes will be lost")
flag.BoolVar(&flags.Gut, "gut", false, "generate additional file in the modules dir which concats all of the functions that convert possible response structs to typescript interfaces")
flag.StringVar(&flags.ConfigPath, "config", marvin.ConfigName, "Specify path to the gomarvin config file")
flag.Parse()
marvin.Run(flags, args)
}