generator-begcode
Version: 
Spring Boot + Angular/React/Vue in one handy generator
33 lines (32 loc) • 976 B
JavaScript
const command = {
    options: {},
    configs: {
        enableGradleEnterprise: {
            cli: {
                type: Boolean,
            },
            prompt: {
                type: 'confirm',
                message: 'Do you want to enable Gradle Enterprise integration?',
            },
            default: false,
            description: 'Enable Gradle Enterprise integration',
            scope: 'storage',
        },
        gradleEnterpriseHost: {
            cli: {
                type: String,
            },
            prompt: {
                when: answers => answers.enableGradleEnterprise,
                type: 'input',
                message: 'Enter your Gradle Enterprise host',
                validate: input => (input.length === 0 ? 'Please enter your Gradle Enterprise host' : true),
            },
            description: 'Gradle Enterprise Host',
            scope: 'storage',
        },
    },
    import: [],
};
export default command;