MCPcopy Create free account
hub / github.com/commander-cli/commander / NewTestContextFromCli

Function NewTestContextFromCli

pkg/app/app.go:26–36  ·  view source on GitHub ↗

NewTestContextFromCli is a constructor which creates the context

(c *cli.Context)

Source from the content-addressed store, hash-verified

24
25//NewTestContextFromCli is a constructor which creates the context
26func NewTestContextFromCli(c *cli.Context) TestCommandContext {
27 return TestCommandContext{
28 Verbose: c.Bool("verbose"),
29 NoColor: c.Bool("no-color"),
30 Dir: c.Bool("dir"),
31 Workdir: c.String("workdir"),
32 Concurrent: c.Int("concurrent"),
33 Config: c.String("config"),
34 Filters: c.StringSlice("filter"),
35 }
36}

Callers 2

createTestCommandFunction · 0.92

Calls

no outgoing calls

Tested by 1