var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.taskRnvAppCreate=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _constants=require("../core/constants");
var _logger=require("../core/systemManager/logger");



var _prompt=require("../cli/prompt");


var taskRnvAppCreate=function taskRnvAppCreate(c){var _c$runtime;var _await$inquirerPrompt,conf;return _regenerator.default.async(function taskRnvAppCreate$(_context){while(1){switch(_context.prev=_context.next){case 0:
(0,_logger.logTask)('taskRnvAppCreate');_context.next=3;return _regenerator.default.awrap(

(0,_prompt.inquirerPrompt)({
name:'conf',
type:'confirm',
message:'Do you want ReNative to create new sample appConfig for you?',
warningMessage:"No app configs found for this project \nMaybe you forgot to run "+(0,_logger.chalk)().white('rnv template apply')+" ?"}));case 3:_await$inquirerPrompt=_context.sent;conf=_await$inquirerPrompt.conf;

(0,_logger.logTask)('taskRnvAppCreate',conf+" "+((_c$runtime=c.runtime)==null?void 0:_c$runtime.appId));return _context.abrupt("return",

true);case 7:case"end":return _context.stop();}}},null,null,null,Promise);};exports.taskRnvAppCreate=taskRnvAppCreate;var _default=


{
description:'Create new app config',
fn:taskRnvAppCreate,
task:_constants.TASK_APP_CREATE,
params:_constants.PARAMS.withBase(),
platforms:[]};exports.default=_default;
//# sourceMappingURL=task.rnv.app.create.js.map