MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / finish

Function finish

cli/src/cli/readPasswordLine.ts:31–39  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

29 };
30
31 const finish = (value: string) => {
32 if (settled) {
33 return;
34 }
35 settled = true;
36 cleanup();
37 stdout.write('\n');
38 resolve(value);
39 };
40
41 const onEnd = () => {
42 finish(password);

Callers 2

onEndFunction · 0.85
onDataFunction · 0.85

Calls 2

cleanupFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected