Prompt.IO.Examples (prompt v0.12.0)

View Source

Runnable examples of all the input and output functions.

Each of these can be ran using mix run

Summary

Functions

See Prompt.display/2 for full docs on displaying text

See Prompt.select/3 for full select docs

See Prompt.select/2 for full select docs

See Prompt.password/2 for full docs on password input

See Prompt.select/2 for full select docs

See Prompt.text/2 for full docs on text input

Functions

display()

@spec display() :: none() | no_return()

See Prompt.display/2 for full docs on displaying text

Run the following command to see an examples of the display function

mix run -e "Prompt.IO.Examples.display()" 

filter_select()

See Prompt.select/3 for full select docs

A long list with suggested choices first, a type-to-filter search, and an entry for something new. Run:

mix run -e "Prompt.IO.Examples.filter_select()"

multi_select()

See Prompt.select/2 for full select docs

Run the following command to see an example of multi-select

mix run -e "Prompt.IO.Examples.multi_select()" 

password()

See Prompt.password/2 for full docs on password input

Run the following command to examples of asking for concealed input

mix run -e "Prompt.IO.Examples.password()" 

single_select()

See Prompt.select/2 for full select docs

Run the following command to see an example of a single select

mix run -e "Prompt.IO.Examples.single_select()" 

text()

See Prompt.text/2 for full docs on text input

Run the following command to examples of asking for user text input

mix run -e "Prompt.IO.Examples.text()"