MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / runBinary

Function runBinary

hoverctl/wrapper/hoverfly.go:149–162  ·  view source on GitHub ↗

* This isn't working as intended, its working, just not how I imagined it. */

(target *configuration.Target, path string)

Source from the content-addressed store, hash-verified

147*/
148
149func runBinary(target *configuration.Target, path string) (*exec.Cmd, error) {
150 flags := target.BuildFlags()
151
152 cmd := exec.Command(path, flags...)
153 log.Debug(cmd.Args)
154
155 err := cmd.Start()
156 if err != nil {
157 log.Debug(err)
158 return nil, errors.New("Could not start Hoverfly")
159 }
160
161 return cmd, nil
162}
163
164func Start(target *configuration.Target) error {
165 // TODO only check port if is it localhost

Callers 1

StartFunction · 0.85

Calls 2

BuildFlagsMethod · 0.80
StartMethod · 0.80

Tested by

no test coverage detected