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

    const done = this.async();
    const messageAskForApps = 'Which applications do you want to include in your configuration?';

    const prompts = [
        {
            type: 'checkbox',
            name: 'chosenApps',
            message: messageAskForApps,
            choices: this.appsFolders,
            default: this.defaultAppsFolders,
            validate: input => (input.length === 0 ? 'Please choose at least one application' : true)
        }
    ];

    this.prompt(prompts).then(props => {
        this.appsFolders = props.chosenApps;

        loadConfigs.call(this);
        done();
    });
}
function askForApps() {
    if (this.regenerate) return;

    const done = this.async();
    const messageAskForApps = 'Which applications do you want to include in your configuration?';

    const prompts = [
        {
            type: 'checkbox',
            name: 'chosenApps',
            message: messageAskForApps,
            choices: this.appsFolders,
            default: this.defaultAppsFolders,
            validate: input => (input.length === 0 ? 'Please choose at least one application' : true)
        }
    ];

    this.prompt(prompts).then(props => {
        this.appsFolders = props.chosenApps;

        loadConfigs.call(this);
        done();
    });
}
function askForApps ( ) { if ( this . regenerate ) return ; const done = this . async ( ) ; const messageAskForApps = 'Which applications do you want to include in your configuration?' ; const prompts = [ { type : 'checkbox' , name : 'chosenApps' , message : messageAskForApps , choices : this . appsFolders , default : this . defaultAppsFolders , validate : input => ( input . length === 0 ? 'Please choose at least one application' : true ) } ] ; this . prompt ( prompts ) . then ( props => { this . appsFolders = props . chosenApps ; loadConfigs . call ( this ) ; done ( ) ; } ) ; }
Ask For Apps
Ask For Apps