requestty/examples
Lutetium-Vanadium 911dd36aad Change rendering of the default value in input, int and float
Earlier, the default value would just be shown on the side at all times.
This is even if the default will not be selected which can be
misleading. This change shows the default as greyed out text in the
input itself. It also allows pressing 'Tab' to make the current input
the default if the current input value is the start of the default.

Implements #4
2021-12-30 15:58:41 +08:00
..
confirm.rs Add more examples 2021-07-16 10:48:48 +05:30
editor.rs Add more examples 2021-07-16 10:48:48 +05:30
expand.rs rename to requestty 2021-07-15 17:05:17 +05:30
file_auto_complete.rs Add more examples 2021-07-16 10:48:48 +05:30
float.rs Add more examples 2021-07-16 10:48:48 +05:30
game.rs Add more examples 2021-07-16 10:48:48 +05:30
input.rs Add the validate_on_key option 2021-12-27 17:35:46 +08:00
int.rs Change rendering of the default value in input, int and float 2021-12-30 15:58:41 +08:00
long-list.rs rename to requestty 2021-07-15 17:05:17 +05:30
macros.rs Add more examples 2021-07-16 10:48:48 +05:30
multi-select.rs Add more examples 2021-07-16 10:48:48 +05:30
password.rs Add the validate_on_key option 2021-12-27 17:35:46 +08:00
prompt-module.rs Add more examples 2021-07-16 10:48:48 +05:30
raw-select.rs rename to requestty 2021-07-15 17:05:17 +05:30
README.md rename to requestty 2021-07-15 17:05:17 +05:30
repetitive.rs Add more examples 2021-07-16 10:48:48 +05:30
select.rs rename to requestty 2021-07-15 17:05:17 +05:30
when.rs rename to requestty 2021-07-15 17:05:17 +05:30

Requestty Examples

The examples given show some basic usage of the library in different ways. You can also see the documentation for the Question type for examples on each prompt type.

Required features

All of the examples work with all features.

Run examples

$ cargo run --example [example-name]