MCPcopy Create free account
hub / github.com/TanStack/query / start

Function start

examples/lit/pagination/scripts/dev.mjs:14–28  ·  view source on GitHub ↗
(name, command, args, extraEnv = {})

Source from the content-addressed store, hash-verified

12}
13
14function start(name, command, args, extraEnv = {}) {
15 const child = spawn(command, args, {
16 cwd,
17 stdio: ['ignore', 'pipe', 'pipe'],
18 env: {
19 ...process.env,
20 ...extraEnv,
21 },
22 })
23
24 forwardOutput(`[${name}] `, child.stdout, process.stdout)
25 forwardOutput(`[${name}] `, child.stderr, process.stderr)
26
27 return child
28}
29
30async function stop(child) {
31 if (!child || child.exitCode !== null) {

Callers 1

runFunction · 0.85

Calls 1

forwardOutputFunction · 0.85

Tested by

no test coverage detected