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

Function newCmd

cli/cmd/devtool/start.go:824–830  ·  view source on GitHub ↗

newCmd initializes an exec.Cmd that sends SIGINT instead of SIGKILL when the ctx is canceled.

(ctx context.Context, name string, args ...string)

Source from the content-addressed store, hash-verified

822
823// newCmd initializes an exec.Cmd that sends SIGINT instead of SIGKILL when the ctx is canceled.
824func newCmd(ctx context.Context, name string, args ...string) *exec.Cmd {
825 cmd := exec.CommandContext(ctx, name, args...)
826 cmd.Cancel = func() error {
827 return cmd.Process.Signal(os.Interrupt)
828 }
829 return cmd
830}
831
832// lookupDotenv returns a value from the .env file.
833// NOTE: Not using godotenv.Load() since the OpenTelemetry-related env vars clash with `docker compose`.

Callers 11

checkNodeVersionFunction · 0.85
checkDockerFunction · 0.85
resetStateMethod · 0.85
runDepsMethod · 0.85
runAdminMethod · 0.85
runRuntimeMethod · 0.85
runUIInstallMethod · 0.85
runUIMethod · 0.85
runRuntimeMethod · 0.85
runUIInstallMethod · 0.85
runUIMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected