actbase-cli
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -265,15 +265,4 @@ "use strict"; | ||
if (!device) { | ||
console.log('Your want Device ?'); | ||
const selected = yield cliSelect({ | ||
values: ['All Device', 'iOS', 'Android'], | ||
valueRenderer: (value, selected) => { | ||
if (selected) { | ||
return chalk.underline(value); | ||
} | ||
return value; | ||
} | ||
}); | ||
const selected = (0, _utils.select)('On which platform do you want to deploy?', ['All Device', 'iOS', 'Android']); | ||
device = selected.value.toLowerCase(); | ||
console.log(`${selected.value} Selected.`); | ||
} | ||
@@ -280,0 +269,0 @@ |
@@ -86,37 +86,26 @@ "use strict"; | ||
if (((_config2 = _config) === null || _config2 === void 0 ? void 0 : _config2.preset) === undefined) { | ||
console.log('언어팩 생성준비를 시작합니다.'); | ||
const value = yield cliSelect({ | ||
values: ['Google Docs', 'Spreadsheet File (xlsx)'], | ||
valueRenderer: (value, selected) => { | ||
if (selected) { | ||
return chalk.underline(value); | ||
} | ||
return value; | ||
} | ||
}); | ||
const value = (0, _utils.select)('What kind of file do you want?', ['Google Docs', 'Spreadsheet File (xlsx)']); | ||
_config.preset = value === null || value === void 0 ? void 0 : value.id; | ||
console.log((value === null || value === void 0 ? void 0 : value.value) + ' Selected!'); | ||
} | ||
if (!((_config3 = _config) === null || _config3 === void 0 ? void 0 : _config3.output)) { | ||
const output = yield (0, _utils.readText)('언어팩 생성할 경로를 입력하세요 : '); | ||
if (!((_config3 = _config) === null || _config3 === void 0 ? void 0 : _config3.path)) { | ||
const path = yield (0, _utils.readText)('해당 소스파일(XLS or CSV)을 입력하세요 : '); | ||
if (!output) { | ||
console.error('출력 항목은 필수입니다.'); | ||
if (!path) { | ||
console.error('경로 항목은 필수입니다.'); | ||
process.exit(1); | ||
} | ||
_config.output = output; | ||
_config.path = path; | ||
} | ||
if (!((_config4 = _config) === null || _config4 === void 0 ? void 0 : _config4.path)) { | ||
const path = yield (0, _utils.readText)('해당 소스파일(XLS or CSV)을 입력하세요 : '); | ||
if (!((_config4 = _config) === null || _config4 === void 0 ? void 0 : _config4.output)) { | ||
const output = yield (0, _utils.readText)('언어팩 생성할 경로를 입력하세요 : '); | ||
if (!path) { | ||
console.error('경로 항목은 필수입니다.'); | ||
if (!output) { | ||
console.error('출력 항목은 필수입니다.'); | ||
process.exit(1); | ||
} | ||
_config.path = path; | ||
_config.output = output; | ||
} | ||
@@ -123,0 +112,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = exports.getPackageJson = exports.readText = exports.writeFile = exports.readFile = exports.execute = void 0; | ||
exports.default = exports.select = exports.getPackageJson = exports.readText = exports.writeFile = exports.readFile = exports.execute = void 0; | ||
@@ -112,2 +112,28 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
exports.getPackageJson = getPackageJson; | ||
const select = | ||
/*#__PURE__*/ | ||
function () { | ||
var _ref2 = _asyncToGenerator(function* (message, values) { | ||
console.log(message); | ||
const result = yield cliSelect({ | ||
values, | ||
valueRenderer: (value, selected) => { | ||
if (selected) { | ||
return chalk.underline(value); | ||
} | ||
return value; | ||
} | ||
}); | ||
console.log(message + ' : ' + result.value); | ||
return result; | ||
}); | ||
return function select(_x, _x2) { | ||
return _ref2.apply(this, arguments); | ||
}; | ||
}(); | ||
exports.select = select; | ||
var _default = { | ||
@@ -114,0 +140,0 @@ readFile, |
{ | ||
"name": "actbase-cli", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Actbase Command Line Interface", | ||
@@ -5,0 +5,0 @@ "author": "Trabricks LLC", |
639
30239