MCPcopy Index your code
hub / github.com/rilldata/rill / runRuntime

Method runRuntime

cli/cmd/devtool/start.go:698–714  ·  view source on GitHub ↗
(ctx context.Context, verbose, reset bool)

Source from the content-addressed store, hash-verified

696}
697
698func (s local) runRuntime(ctx context.Context, verbose, reset bool) error {
699 logInfo.Printf("Starting runtime\n")
700 defer func() { logInfo.Printf("Stopped runtime\n") }()
701
702 args := []string{"run", "cli/main.go", "start", stateDirLocal, "--no-ui", "--debug", "--allowed-origins", "http://localhost:3001"}
703 if verbose {
704 args = append(args, "--verbose")
705 }
706 if reset {
707 args = append(args, "--reset")
708 }
709
710 cmd := newCmd(ctx, "go", args...)
711 cmd.Stdout = os.Stdout
712 cmd.Stderr = os.Stdout
713 return cmd.Run()
714}
715
716func (s local) awaitRuntime(ctx context.Context) error {
717 pingURL := "http://localhost:9009/v1/ping"

Callers 1

startMethod · 0.95

Calls 3

newCmdFunction · 0.85
PrintfMethod · 0.80
RunMethod · 0.45

Tested by

no test coverage detected