forked from chromedp/chromedp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flag.go
36 lines (32 loc) · 1.13 KB
/
flag.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
package internal
import "flag"
// FlagSet is the set of application flags.
var FlagSet = &flag.FlagSet{}
// The application flags.
var (
FlagPkg = FlagSet.String("pkg", "github.com/knq/chromedp/cdp", "output package")
FlagFile = FlagSet.String("file", "protocol.json", "path to chrome protocol.json")
FlagDep = FlagSet.Bool("dep", false, "toggle deprecated API generation")
FlagExp = FlagSet.Bool("exp", true, "toggle experimental API generation")
FlagRedirect = FlagSet.Bool("redirect", false, "toggle redirect API generation")
FlagNoRemove = FlagSet.Bool("noremove", false, "toggle to not remove existing package directory")
)
// Prefix and suffix values.
var (
DomainTypePrefix = ""
DomainTypeSuffix = ""
TypePrefix = ""
TypeSuffix = ""
EventMethodPrefix = "Event"
EventMethodSuffix = ""
CommandMethodPrefix = "Command"
CommandMethodSuffix = ""
EventTypePrefix = "Event"
EventTypeSuffix = ""
CommandTypePrefix = ""
CommandTypeSuffix = "Params"
CommandReturnsPrefix = ""
CommandReturnsSuffix = "Returns"
OptionFuncPrefix = "With"
OptionFuncSuffix = ""
)