node_modules/snyk/dist/cli/139.index.js
/**
   * When user press `enter` key
   */
When user press `enter` key
When user press ` enter ` key
onSubmit(state) {
    this.status = 'answered';
    var choice = this.opt.choices.where({ value: state.value })[0];
    this.answer = choice.short || choice.name;
    this.render();
    this.screen.done();
    this.done(state.value);
  }
onSubmit ( state ) { this . status = 'answered' ; var choice = this . opt . choices . where ( { value : state . value } ) [ 0 ] ; this . answer = choice . short || choice . name ; this . render ( ) ; this . screen . done ( ) ; this . done ( state . value ) ; }
When user press `enter` key
When user press ` enter ` key
// Re-render prompt