MCPcopy Index your code
hub / github.com/tensorflow/tfjs / question

Function question

scripts/release-util.ts:217–229  ·  view source on GitHub ↗
(questionStr: string)

Source from the content-addressed store, hash-verified

215export const TMP_DIR = '/tmp/tfjs-release';
216
217export async function question(questionStr: string): Promise<string> {
218 const rl =
219 readline.createInterface({ input: process.stdin, output: process.stdout });
220
221 console.log(chalk.bold(questionStr));
222 return new Promise<string>(
223 resolve => {
224 rl.question('> ', response => {
225 resolve(response);
226 rl.close();
227 });
228 });
229}
230
231/**
232 * A wrapper around shell.exec for readability.

Callers 7

mainFunction · 0.90
getNewVersionFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
updateDependencyFunction · 0.70
getReleaseBranchFunction · 0.70

Calls 2

logMethod · 0.65
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…