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

Function runUserCommands

src/spec-node/devContainersSpecCLI.ts:838–846  ·  view source on GitHub ↗
(args: RunUserCommandsArgs)

Source from the content-addressed store, hash-verified

836 runAsyncHandler(runUserCommands.bind(null, args));
837}
838async function runUserCommands(args: RunUserCommandsArgs) {
839 const result = await doRunUserCommands(args);
840 const exitCode = result.outcome === 'error' ? 1 : 0;
841 await new Promise<void>((resolve, reject) => {
842 process.stdout.write(JSON.stringify(result) + '\n', err => err ? reject(err) : resolve());
843 });
844 await result.dispose();
845 process.exit(exitCode);
846}
847
848async function doRunUserCommands({
849 'user-data-folder': persistedFolder,

Callers

nothing calls this directly

Calls 4

doRunUserCommandsFunction · 0.85
resolveFunction · 0.85
writeMethod · 0.65
disposeMethod · 0.65

Tested by

no test coverage detected