Crates.io | read_input |
lib.rs | read_input |
version | 0.8.6 |
source | src |
created_at | 2018-10-20 17:08:48.743496 |
updated_at | 2021-08-16 11:53:46.4406 |
description | Ask for user input until the data inputted is valid |
homepage | |
repository | https://github.com/eopb/read_input |
max_upload_size | |
id | 91679 |
size | 61,160 |
A simple CLI tool that asks for user input until the data inputted is valid.
When writing command line tools you will often need to take input from the user. If the user inputs invalid information the program needs to ask them again. Having to make this loop distracts from the useful logic in your program.
read_input
attempts to make it easy to get input from the user without having to think about converting types.
Everything is covered on our documentation page. Latest Docs