Ad

inquire: Interactive prompts for CLI applications

Inquire facilitates building interactive prompts within command-line interfaces, offering various prompt types and flexible configuration options.
Screenshot of mikaelmello/inquire homepage

Inquire is a Rust library that simplifies the creation of interactive prompts for command-line applications. It provides a range of prompt types such as text input, date selection, and list selection, along with features like autocompletion and custom validation. The library aims to streamline user interaction within terminal applications by offering a consistent and flexible API.

Inquire distinguishes itself through its broad range of prompt types, supported by a standardized API. It offers fine-grained configuration for customizing appearance, validation, and behavior. The library provides excellent cross-platform compatibility, supporting Windows, macOS, and Linux terminals. It is notable for its ease of use and ability to handle complex prompts effectively.

  • Cross-platform support: Works seamlessly on Linux, macOS, and Windows terminals thanks to crossterm.
  • Diverse prompt types: Offers a comprehensive set of prompts including text, date, list, and custom input types.
  • Configurable rendering: Enables customization of prompt aesthetics, including colors, attributes, and token styling.
  • Robust validation: Provides mechanisms to validate user input with customizable validators and error handling.
  • Easily extensible: Support for custom render configurations and custom parsers allows flexible integration.
  • Standardized Error Handling: Uses thiserror for consistent and user-friendly error reporting.
  • Multiple Terminal Backends: Supports crossterm, termion, and console for flexibility.

Inquire is an actively maintained library with a growing community. Recent commits indicate ongoing development and feature additions. The documentation is relatively complete, with examples covering various use cases. The project benefits from a solid architecture and clear design, resulting in a reliable and stable experience.

Developers building command-line applications or terminal tools can benefit from Inquire by easily adding interactive prompts. This library reduces the complexity of user input handling, enabling developers to create more user-friendly and intuitive interfaces. It is particularly valuable for applications requiring flexible input validation, custom styling, or diverse prompt types.

Languages:
Summarize:
Share:
Stars
2,612
Forks
108
Issues
85
Created
5 years ago
Commit
6 months ago
License
MIT
Archived
No
Updated 13 days ago

Similar Repositories