Debian Codegraph @

docs/pages/types.rst

raw
1 .. _question_types:
2
3 **************
4 Question Types
5 **************
6
7 The different question types are meant to cover different use cases. The
8 parameters and configuration options are explained in detail for each
9 type. But before we get into to many details, here is a **cheatsheet
10 with the available question types**:
11
12 * use :ref:`type_text` to ask for **free text** input
13
14 * use :ref:`type_password` to ask for free text where the **text is hidden**
15
16 * use :ref:`type_path` to ask for a **file or directory** path with autocompletion
17
18 * use :ref:`type_confirm` to ask a **yes or no** question
19
20 * use :ref:`type_select` to ask the user to select **one item** from a beautiful list
21
22 * use :ref:`type_raw_select` to ask the user to select **one item** from a list
23
24 * use :ref:`type_checkbox` to ask the user to select **any number of items** from a list
25
26 * use :ref:`type_autocomplete` to ask for free text with **autocomplete help**
27
28 * use :ref:`type_press_any_key_to_continue` to ask the user to **press any key to continue**
29
30 .. _type_text:
31
32 Text
33 ####
34
35 .. automethod:: questionary::text
36
37 .. _type_password:
38
39 Password
40 ########
41
42 .. automethod:: questionary::password
43
44 .. _type_path:
45
46 File Path
47 #########
48
49 .. automethod:: questionary::path
50
51 .. _type_confirm:
52
53 Confirmation
54 ############
55
56 .. automethod:: questionary::confirm
57
58 .. _type_select:
59
60 Select
61 ######
62
63 .. automethod:: questionary::select
64
65 .. _type_raw_select:
66
67 Raw Select
68 ##########
69
70 .. automethod:: questionary::rawselect
71
72 .. _type_checkbox:
73
74 Checkbox
75 ########
76
77 .. automethod:: questionary::checkbox
78
79 .. _type_autocomplete:
80
81 Autocomplete
82 ############
83
84 .. automethod:: questionary::autocomplete
85
86 Printing Formatted Text
87 #######################
88
89 .. automethod:: questionary::print
90
91 .. _type_press_any_key_to_continue:
92
93 Press Any Key To Continue
94 #########################
95
96 .. automethod:: questionary::press_any_key_to_continue