37 releases

0.8.6 Aug 16, 2021
0.8.4 Feb 24, 2020
0.8.2 Aug 28, 2019
0.8.1 May 29, 2019
0.6.2 Nov 27, 2018

#468 in Command-line interface

Download history 779/week @ 2024-07-21 803/week @ 2024-07-28 812/week @ 2024-08-04 1007/week @ 2024-08-11 821/week @ 2024-08-18 837/week @ 2024-08-25 765/week @ 2024-09-01 663/week @ 2024-09-08 713/week @ 2024-09-15 939/week @ 2024-09-22 1355/week @ 2024-09-29 890/week @ 2024-10-06 769/week @ 2024-10-13 837/week @ 2024-10-20 865/week @ 2024-10-27 616/week @ 2024-11-03

3,136 downloads per month
Used in 20 crates

MIT/Apache

33KB
609 lines

Read Input

A simple CLI tool that asks for user input until the data inputted is valid.

License Latest version Latest Docs downloads-badge

Why you need it

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.

How to get started.

Everything is covered on our documentation page. Latest Docs

Docs

API Documentation

No runtime deps