Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(args, opts) {
super(args, opts);
this.log('>>>>>>>>>>>>>'+process.cwd());
jhipsterUtils.copyObjectProps(this, this.options.context);
// This makes `name` a required argument.
this.argument('name', {
type: String,
required: true,
description: 'Entity name'
});
// This method adds support for a `--[no-]regenerate` flag
this.option('regenerate', {
desc: 'Regenerate the entity without presenting an option to update it',
type: Boolean,
defaults: false
});
this.option('table-name', {
desc: 'Specify table name that will be used by the entity',
constructor(args, opts) {
super(args, opts);
utils.copyObjectProps(this, this.options.context);
const blueprint = this.config.get('blueprint');
useBlueprint = this.composeBlueprint(blueprint, 'entity'); // use global variable since getters dont have access to instance property
}