generators/docker-prompts.js
function askForConsoleOptions() {
    if (this.regenerate) return;

    if (this.monitoring !== 'elk') return;

    const done = this.async();

    const prompts = [
        {
            type: 'checkbox',
            name: 'consoleOptions',
            message:
                'You have selected the JHipster Console which is based on the ELK stack and additional technologies, which one do you want to use ?',
            choices: [
                {
                    value: 'curator',
                    name: 'Curator, to help you curate and manage your Elasticsearch indices'
                }
            ],
            default: this.monitoring
        }
    ];
    if (this.deploymentApplicationType === 'microservice') {
        prompts[0].choices.push({
            value: 'zipkin',
            name: 'Zipkin, for distributed tracing (only compatible with JHipster >= v4.2.0)'
        });
    }
    this.prompt(prompts).then(props => {
        this.consoleOptions = props.consoleOptions;
        done();
    });
}
function askForConsoleOptions() {
    if (this.regenerate) return;

    if (this.monitoring !== 'elk') return;

    const done = this.async();

    const prompts = [
        {
            type: 'checkbox',
            name: 'consoleOptions',
            message:
                'You have selected the JHipster Console which is based on the ELK stack and additional technologies, which one do you want to use ?',
            choices: [
                {
                    value: 'curator',
                    name: 'Curator, to help you curate and manage your Elasticsearch indices'
                }
            ],
            default: this.monitoring
        }
    ];
    if (this.deploymentApplicationType === 'microservice') {
        prompts[0].choices.push({
            value: 'zipkin',
            name: 'Zipkin, for distributed tracing (only compatible with JHipster >= v4.2.0)'
        });
    }
    this.prompt(prompts).then(props => {
        this.consoleOptions = props.consoleOptions;
        done();
    });
}
function askForConsoleOptions ( ) { if ( this . regenerate ) return ; if ( this . monitoring !== 'elk' ) return ; const done = this . async ( ) ; const prompts = [ { type : 'checkbox' , name : 'consoleOptions' , message : 'You have selected the JHipster Console which is based on the ELK stack and additional technologies, which one do you want to use ?' , choices : [ { value : 'curator' , name : 'Curator, to help you curate and manage your Elasticsearch indices' } ] , default : this . monitoring } ] ; if ( this . deploymentApplicationType === 'microservice' ) { prompts [ 0 ] . choices . push ( { value : 'zipkin' , name : 'Zipkin, for distributed tracing (only compatible with JHipster >= v4.2.0)' } ) ; } this . prompt ( prompts ) . then ( props => { this . consoleOptions = props . consoleOptions ; done ( ) ; } ) ; }
Ask For Console Options
Ask For Console Options