Registry / cli / inquire

inquire

JSON →
library0.9.4rscratesunverified

A library for building interactive prompts on terminals.

# Cargo.toml [dependencies] inquire = "0.9.4"
INSTALL
IMPORT
SIG · INQUIRE
I
inquire
clirustv0.9.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Text
use inquire::Text;

Prompts the user for text input via the terminal.

use inquire::Text; fn main() { let name = Text::new("What is your name?").prompt().expect("failed to get input"); println!("Hello, {}!", name); }
Debug
Known issues
gotchaRequires a terminal; may not work in non-interactive environments (e.g., CI).
fix
Check if stdin is a TTY before using inquire.
affects: >=0.0.0
Upgrade
Version history
0.9.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
22
Resources
inquire — cargo add inquire · libregistry