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

Method runUI

cli/cmd/devtool/start.go:749–757  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

747}
748
749func (s local) runUI(ctx context.Context) (err error) {
750 logInfo.Printf("Starting UI\n")
751 defer logInfo.Printf("Stopped UI\n")
752
753 cmd := newCmd(ctx, "npm", "run", "dev", "-w", "web-local", "--", "--port", "3001")
754 cmd.Stdout = os.Stdout
755 cmd.Stderr = os.Stdout
756 return cmd.Run()
757}
758
759func (s local) awaitUI(ctx context.Context) error {
760 uiURL := "http://localhost:3001"

Callers 1

startMethod · 0.95

Calls 3

newCmdFunction · 0.85
PrintfMethod · 0.80
RunMethod · 0.45

Tested by

no test coverage detected