gen-jhipster
Version:
Spring Boot + Angular/React/Vue in one handy generator
33 lines (32 loc) • 947 B
JavaScript
const command = {
options: {
jasypt: {
description: 'Using Jasypt?',
type: Boolean,
scope: 'storage',
},
},
configs: {
jasyptEncryptorPassword: {
cli: {
type: String,
},
prompt: (gen) => ({
type: 'input',
message: 'Type your Jasypt encryptor password (Min length is 8):',
default: 'vhipster',
validate: (input) => {
if (input === '')
return 'password can not be empty';
if (input.length < 8)
return 'Please type longer password, min lenth of password is 8';
return true;
},
}),
scope: 'storage',
description: 'Jasypt Encryptor password',
},
},
import: [],
};
export default command;