#input #console #cli #text #simple

read_input

Ask for user input until the data inputted is valid

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

#77 in Command-line interface

Download history 525/week @ 2021-08-13 459/week @ 2021-08-20 351/week @ 2021-08-27 324/week @ 2021-09-03 430/week @ 2021-09-10 388/week @ 2021-09-17 544/week @ 2021-09-24 385/week @ 2021-10-01 361/week @ 2021-10-08 362/week @ 2021-10-15 362/week @ 2021-10-22 358/week @ 2021-10-29 414/week @ 2021-11-05 276/week @ 2021-11-12 293/week @ 2021-11-19 369/week @ 2021-11-26

1,437 downloads per month
Used in less than 13 crates

MIT/Apache

32KB
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