MCPcopy Index your code
hub / github.com/devcontainers/cli / event

Function event

src/spec-common/injectHeadless.ts:477–495  ·  view source on GitHub ↗
(e: LogEvent)

Source from the content-addressed store, hash-verified

475 const progressName = `Running ${lifecycleHookName}...`;
476 const infoOutput = makeLog({
477 event(e: LogEvent) {
478 lifecycleHook.output.event(e);
479 if (e.type === 'raw' && e.text.includes('::endstep::')) {
480 lifecycleHook.output.event({
481 type: 'progress',
482 name: progressName,
483 status: 'running',
484 stepDetail: ''
485 });
486 }
487 if (e.type === 'raw' && e.text.includes('::step::')) {
488 lifecycleHook.output.event({
489 type: 'progress',
490 name: progressName,
491 status: 'running',
492 stepDetail: `${e.text.split('::step::')[1].split('\r\n')[0]}`
493 });
494 }
495 },
496 get dimensions() {
497 return lifecycleHook.output.dimensions;
498 },

Callers

nothing calls this directly

Calls 1

eventMethod · 0.65

Tested by

no test coverage detected