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

#11 in Command-line interface

Download history 151801/week @ 2023-12-05 146886/week @ 2023-12-12 130454/week @ 2023-12-19 78305/week @ 2023-12-26 147996/week @ 2024-01-02 145926/week @ 2024-01-09 172265/week @ 2024-01-16 169511/week @ 2024-01-23 173141/week @ 2024-01-30 162323/week @ 2024-02-06 152982/week @ 2024-02-13 170148/week @ 2024-02-20 187712/week @ 2024-02-27 197605/week @ 2024-03-05 218332/week @ 2024-03-12 178625/week @ 2024-03-19

814,271 downloads per month
Used in 1,207 crates (686 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

~0.5–11MB
~107K SLoC