async prompting()

in generators/guestcontainer/index.js [31:71]


    async prompting() {
            var prompts = [

                {
                    name: 'serviceName',
                    message: 'Name of the application service:',
                    default: 'MyService',
                    when: !this._isOptionSet('serviceName')
                },

                {
                    name: 'imageName',
                    message: 'Input the Image Name:',
                    when: !this._isOptionSet('imageName')
                },

                {
                    name: 'commands',
                    message: 'Commands:',
                    when: !this._isOptionSet('commands')
                },

                {
                    name: 'instanceCount',
                    message: 'Number of instances of guest container application:',
                    default: '1',
                    when: !this._isOptionSet('instanceCount')
                },

                {
                    name: 'portMap',
                    message: 'Enter the container host mapping in the following format, container_port:host_port or press enter if not needed:',
                    when: !this._isOptionSet('portMap')
                }
            ];

            await this.prompt(prompts).then(props => {
                this.props = props;
            });

    } // askForService() // prompting()