MCPcopy Create free account
hub / github.com/hashintel/hash / promptVisible

Function promptVisible

apps/hash-api/src/setup-admin.ts:22–29  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

20import type { ImpureGraphContext } from "./graph/context-types";
21
22const promptVisible = async (label: string): Promise<string> => {
23 const rl = createInterface({ input: process.stdin, output: process.stdout });
24 try {
25 return (await rl.question(`${label}: `)).trim();
26 } finally {
27 rl.close();
28 }
29};
30
31/**
32 * Reads a line from stdin without echoing characters, masking each typed

Callers 2

promptHiddenFunction · 0.85
setup-admin.tsFile · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected