gen-jhipster
Version:
VHipster - Spring Boot + Angular/React/Vue in one handy generator
38 lines (37 loc) • 975 B
JavaScript
import { BASE_NAME_DESCRIPTION } from "./constants.js";
const command = {
configs: {
defaultBaseName: {
internal: {
type: Function,
},
scope: 'generator',
},
validateBaseName: {
internal: {
type: Function,
},
scope: 'generator',
},
baseName: {
description: BASE_NAME_DESCRIPTION,
cli: {
type: String,
},
prompt: gen => ({
type: 'input',
validate: (input) => gen.validateBaseName(input),
message: 'What is the base name of your application?',
default: () => gen.defaultBaseName(),
}),
scope: 'storage',
},
defaults: {
internal: {
type: Boolean,
},
scope: 'none',
},
},
};
export default command;