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

#758 in Command-line interface

Download history 544/week @ 2024-07-04 740/week @ 2024-07-11 746/week @ 2024-07-18 838/week @ 2024-07-25 726/week @ 2024-08-01 1021/week @ 2024-08-08 854/week @ 2024-08-15 830/week @ 2024-08-22 793/week @ 2024-08-29 703/week @ 2024-09-05 694/week @ 2024-09-12 861/week @ 2024-09-19 1204/week @ 2024-09-26 1134/week @ 2024-10-03 760/week @ 2024-10-10 767/week @ 2024-10-17

4,048 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