UNPKG

xrefcli

Version:

CLI command for the searching through OpenEdge XREF

62 lines (59 loc) 2.2 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); function ask() { return __awaiter(this, void 0, void 0, function* () { return new Promise(resolve => { /* const prompt = inquirer.createPromptModule(); prompt({ name: 'type', type: 'list', message: 'what ui do you want?', choices: ['gui', 'cli'], }).then(answer => { console.log(`answer: ${JSON.stringify(answer)}`); resolve(true); }); */ setTimeout(() => { console.log('wait 10s'); resolve(true); }, 10000); }); // const bla = await promise; }); } function bla() { return __awaiter(this, void 0, void 0, function* () { yield ask(); console.log('end bla'); }); } bla(); console.log('test'); /* const prompt = inquirer.createPromptModule(); prompt({ name: 'type', type: 'list', message: 'editor type is not specified, select one', choices: ['gui', 'cli'] }).then(answer => { console.log('wtf?!'); if (!config.editor) { config.editor = new EditorConfig(); } config.editor.type = <'gui' | 'cli'>(<{ type: string }>answer).type; console.log('antwoord?'); resolve(); }); */ //# sourceMappingURL=question.js.map