(questionStr: string)
| 215 | export const TMP_DIR = '/tmp/tfjs-release'; |
| 216 | |
| 217 | export 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. |
no test coverage detected
searching dependent graphs…