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

    const done = this.async();

    const prompts = [
        {
            type: 'input',
            name: 'dockerPushCommand',
            message: 'What command should we use for push Docker image to repository?',
            default: this.dockerPushCommand ? this.dockerPushCommand : 'docker push'
        }
    ];

    this.prompt(prompts).then(props => {
        this.dockerPushCommand = props.dockerPushCommand;
        done();
    });
}
function askForDockerPushCommand() {
    if (this.regenerate) return;

    const done = this.async();

    const prompts = [
        {
            type: 'input',
            name: 'dockerPushCommand',
            message: 'What command should we use for push Docker image to repository?',
            default: this.dockerPushCommand ? this.dockerPushCommand : 'docker push'
        }
    ];

    this.prompt(prompts).then(props => {
        this.dockerPushCommand = props.dockerPushCommand;
        done();
    });
}
function askForDockerPushCommand ( ) { if ( this . regenerate ) return ; const done = this . async ( ) ; const prompts = [ { type : 'input' , name : 'dockerPushCommand' , message : 'What command should we use for push Docker image to repository?' , default : this . dockerPushCommand ? this . dockerPushCommand : 'docker push' } ] ; this . prompt ( prompts ) . then ( props => { this . dockerPushCommand = props . dockerPushCommand ; done ( ) ; } ) ; }
Ask For Docker Push Command
Ask For Docker Push Command