MCPcopy Create free account
hub / github.com/anchordotdev/cli / init

Function init

testflags/testflags.go:9–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func init() {
10 pflag.CommandLine.String("api-lockfile", "tmp/apitest.lock", "rails server lockfile path")
11 if err := pflag.CommandLine.MarkHidden("api-lockfile"); err != nil {
12 panic(err)
13 }
14
15 pflag.CommandLine.String("oapi-config", "config/openapi.yml", "openapi spec file path")
16 if err := pflag.CommandLine.MarkHidden("oapi-config"); err != nil {
17 panic(err)
18 }
19
20 pflag.CommandLine.Bool("update", false, "update .golden files")
21 if err := pflag.CommandLine.MarkHidden("update"); err != nil {
22 panic(err)
23 }
24
25 pflag.CommandLine.Bool("prism-proxy", false, "run prism in proxy mode")
26 if err := pflag.CommandLine.MarkHidden("prism-proxy"); err != nil {
27 panic(err)
28 }
29
30 pflag.CommandLine.Bool("prism-verbose", false, "run prism in verbose mode")
31 if err := pflag.CommandLine.MarkHidden("prism-verbose"); err != nil {
32 panic(err)
33 }
34
35 pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
36 pflag.Parse()
37}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected