19 releases (10 breaking)

0.11.0 Sep 21, 2023
0.10.4 Apr 7, 2023
0.10.3 Jan 14, 2023
0.10.2 Jul 28, 2022
0.1.0 May 11, 2017

#12 in Command-line interface

Download history 179356/week @ 2024-06-14 185358/week @ 2024-06-21 168351/week @ 2024-06-28 183251/week @ 2024-07-05 192736/week @ 2024-07-12 194754/week @ 2024-07-19 195062/week @ 2024-07-26 199040/week @ 2024-08-02 195126/week @ 2024-08-09 214466/week @ 2024-08-16 210602/week @ 2024-08-23 195084/week @ 2024-08-30 209413/week @ 2024-09-06 173616/week @ 2024-09-13 198418/week @ 2024-09-20 170378/week @ 2024-09-27

791,683 downloads per month
Used in 1,436 crates (802 directly)

MIT license

135KB
3K SLoC

dialoguer

Build Status Latest version Documentation

A rust library for command line prompts and similar things.

Best paired with other libraries in the family:


lib.rs:

dialoguer is a library for Rust that helps you build useful small interactive user inputs for the command line. It provides utilities to render various simple dialogs like confirmation prompts, text inputs and more.

Best paired with other libraries in the family:

Crate Contents

  • Confirmation prompts
  • Input prompts (regular and password)
  • Input validation
  • Selections prompts (single and multi)
  • Fuzzy select prompt
  • Other kind of prompts
  • Editor launching

Crate Features

The following crate features are available:

  • editor: enables bindings to launch editor to edit strings
  • fuzzy-select: enables fuzzy select prompt
  • history: enables input prompts to be able to track history of inputs
  • password: enables password input prompt
  • completion: enables ability to implement custom tab-completion for input prompts

By default editor and password are enabled.

Dependencies

~1–10MB
~116K SLoC