(args []string)
| 61 | } |
| 62 | |
| 63 | func (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 | } |
nothing calls this directly
no test coverage detected