MCPcopy Index your code
hub / github.com/getsentry/sentry / makeApiDocsCommand

Function makeApiDocsCommand

api-docs/watch.ts:16–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14let isCurrentlyRunning = false;
15
16const makeApiDocsCommand = function () {
17 if (isCurrentlyRunning) {
18 console.log('already rebuilding docs');
19 return;
20 }
21 console.log('rebuilding OpenAPI schema...');
22 isCurrentlyRunning = true;
23 const buildCommand = spawn('make', ['-C', '../', 'build-api-docs']);
24
25 buildCommand.stdout.on('data', function (data) {
26 stdout.write(data.toString());
27 });
28
29 buildCommand.stderr.on('data', function (data) {
30 stderr.write('stderr: ' + data.toString());
31 });
32
33 buildCommand.on('exit', function () {
34 isCurrentlyRunning = false;
35 });
36};
37
38for (const w of watchers) {
39 w.on('change', makeApiDocsCommand);

Callers

nothing calls this directly

Calls 4

logMethod · 0.45
onMethod · 0.45
writeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected