MCPcopy
hub / github.com/livebud/bud / New

Function New

internal/testcli/testcli.go:35–49  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

33)
34
35func New(dir string) *CLI {
36 ps := pubsub.New()
37 return &CLI{
38 dir: dir,
39 bus: ps,
40 Env: envs.Map{
41 "NO_COLOR": "1",
42 "HOME": os.Getenv("HOME"),
43 "PATH": os.Getenv("PATH"),
44 "GOPATH": os.Getenv("GOPATH"),
45 "TMPDIR": os.TempDir(),
46 },
47 Stdin: nil,
48 }
49}
50
51type CLI struct {
52 dir string

Callers 15

TestNoProjectFunction · 0.92
TestEmptyBuildFunction · 0.92
TestPublicFunction · 0.92
TestPluginFunction · 0.92
TestGetChangeGetFunction · 0.92
TestEmbedFaviconFunction · 0.92
TestGeneratorsFunction · 0.92
TestMissingGeneratorFunction · 0.92
TestSyntaxErrorFunction · 0.92
TestUpdateGeneratorFunction · 0.92
TestDeleteGeneratorFunction · 0.92

Calls 1

NewFunction · 0.92

Tested by 15

TestNoProjectFunction · 0.74
TestEmptyBuildFunction · 0.74
TestPublicFunction · 0.74
TestPluginFunction · 0.74
TestGetChangeGetFunction · 0.74
TestEmbedFaviconFunction · 0.74
TestGeneratorsFunction · 0.74
TestMissingGeneratorFunction · 0.74
TestSyntaxErrorFunction · 0.74
TestUpdateGeneratorFunction · 0.74
TestDeleteGeneratorFunction · 0.74