Skip to content

Latest commit

 

History

History
87 lines (51 loc) · 1.6 KB

types.rst

File metadata and controls

87 lines (51 loc) · 1.6 KB

Question Types

The different question types are meant to cover different use cases. The parameters and configuration options are explained in detail for each type. But before we get into to many details, here is a cheatsheet with the available question types:

  • use type_text to ask for free text input
  • use type_password to ask for free text where the text is hidden
  • use type_path to ask for a file or directory path with autocompletion
  • use type_confirm to ask a yes or no question
  • use type_select to ask the user to select one item from a beautiful list
  • use type_raw_select to ask the user to select one item from a list
  • use type_checkbox to ask the user to select any number of items from a list
  • use type_autocomplete to ask for free text with autocomplete help

Text

questionary::text

Password

questionary::password

File Path

questionary::path

Confirmation

questionary::confirm

Select

questionary::select

Raw Select

questionary::rawselect

Checkbox

questionary::checkbox

Autocomplete

questionary::autocomplete

Printing Formatted Text

questionary::print