You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, the fn be called after generate done. But khaos using those {{}} from template as schema, not just the schema I configured. so I read this source code.
Khaos.prototype.generate = unyield(function*(destination, answers){
assert(is.string(destination), 'You must pass a destination path to generate to.');
var files = yield this.read();
if (!answers) {
var schema = yield this.parse(files);
answers = yield this.prompt(schema);
}
assert(is.object(answers), 'The answers must be an object.');
yield this.write(destination, files, answers);
});
If I pass answers argument, then I can disable those behavior, right? But It doesn't work. I added this code console.log(answers), It always output undefined. so Why ?
The text was updated successfully, but these errors were encountered:
Actually, the
fn
be called after generate done. But khaos using those{{}}
from template as schema, not just the schema I configured. so I read this source code.If I pass
answers
argument, then I can disable those behavior, right? But It doesn't work. I added this codeconsole.log(answers)
, It always outputundefined
. so Why ?The text was updated successfully, but these errors were encountered: