Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.arguments('[name]')
.option('-t, --template [name]', 'Name of the Forge template to use')
.option('-c, --copy-ci-files', 'Whether to copy the templated CI files (defaults to false)', false)
.option('-f, --force', 'Whether to overwrite an existing directory (defaults to false)', false)
.action((name) => { dir = workingDir(dir, name, false); })
.parse(process.argv);
const initOpts: InitOptions = {
dir,
interactive: true,
copyCIFiles: !!program.copyCiFiles,
force: !!program.force,
};
if (program.template) initOpts.template = program.template;
await api.init(initOpts);
})();
async createElectronProject() {
this.ui.writeLine(chalk.green(`Creating electron-forge project at './${electronProjectPath}'`));
await api.init({
dir: electronProjectPath,
interactive: true,
template: 'ember-electron/forge/template'
});
}
};