MCPcopy Index your code
hub / github.com/cortexlabs/cortex / mustExtractArgs

Function mustExtractArgs

dev/load.go:325–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323}
324
325func mustExtractArgs() (string, string) {
326 if len(os.Args) != 3 {
327 fmt.Println("usage: go run load.go <url> <sample.json OR sample json string>")
328 os.Exit(1)
329 }
330
331 url := os.Args[1]
332 jsonPathOrString := os.Args[2]
333
334 return url, jsonPathOrString
335}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected