Crates.io | oma-inquire |
lib.rs | oma-inquire |
version | |
source | src |
created_at | 2023-08-08 07:41:11.297403 |
updated_at | 2024-12-09 03:55:11.357099 |
description | inquire is a library for building interactive prompts on terminals |
homepage | https://github.com/aosc-dev/inquire |
repository | https://github.com/aosc-dev/inquire |
max_upload_size | |
id | 938877 |
Cargo.toml error: | TOML parse error at line 23, column 1 | 23 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
inquire
is a library for building interactive prompts on terminals.
It provides several different prompts in order to interactively ask the user for information via the CLI. With inquire
, you can use:
Text
to get text input from the user, with built-in autocompletion support;Editor
* to get longer text inputs by opening a text editor for the user;DateSelect
* to get a date input from the user, selected via an interactive calendar;Select
to ask the user to select one option from a given list;MultiSelect
to ask the user to select an arbitrary number of options from a given list;Confirm
for simple yes/no confirmation prompts;CustomType
for text prompts that you would like to parse to a custom type, such as numbers or UUIDs;Password
for secretive text prompts.Text
prompts;MultiSelect
prompts;Confirm
and CustomType
prompts;Editor
prompts;Put this line in your Cargo.toml
, under [dependencies]
.
inquire = "0.6.1"
* This prompt type is gated under a feature flag, e.g.:
inquire = { version = "0.6.1", features = ["date", "editor"] }