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

#488 in Command-line interface

Download history 616/week @ 2023-12-17 288/week @ 2023-12-24 298/week @ 2023-12-31 556/week @ 2024-01-07 501/week @ 2024-01-14 603/week @ 2024-01-21 645/week @ 2024-01-28 693/week @ 2024-02-04 667/week @ 2024-02-11 539/week @ 2024-02-18 766/week @ 2024-02-25 664/week @ 2024-03-03 688/week @ 2024-03-10 822/week @ 2024-03-17 930/week @ 2024-03-24 808/week @ 2024-03-31

3,304 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