MCPcopy Index your code
hub / github.com/perkeep/perkeep / RunCommand

Method RunCommand

dev/devcam/pk.go:63–81  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

61}
62
63func (c *toolCmd) RunCommand(args []string) error {
64 if !*noBuild {
65 if err := build(filepath.Join("cmd", "pk")); err != nil {
66 return fmt.Errorf("Could not build pk: %v", err)
67 }
68 }
69 c.env.SetCamdevVars(c.altkey)
70 // wipeCacheDir needs to be called after SetCamdevVars, because that is
71 // where CAMLI_CACHE_DIR is defined.
72 if *wipeCache {
73 c.env.wipeCacheDir()
74 }
75
76 cmdBin, err := osutil.LookPathGopath("pk")
77 if err != nil {
78 return err
79 }
80 return runExec(cmdBin, args, c.env)
81}

Callers

nothing calls this directly

Calls 5

LookPathGopathFunction · 0.92
SetCamdevVarsMethod · 0.80
wipeCacheDirMethod · 0.80
buildFunction · 0.70
runExecFunction · 0.70

Tested by

no test coverage detected