code: function adaptor(prompt) {
    prompt = { ...prompt }
    switch (prompt.type) {
      case 'confirm':
        prompt.type = 'checkbox'
        prompt.transformType = 'confirm'
        prompt.value = [prompt.value]
        prompt.choices = [
          { label: 'Yes?', value: true }
        ]
        break
      case 'list':
        prompt.type = 'radio'
        prompt.transformType = 'list'
        break
    }
    return prompt
  }
docs: /* eslint-disable