Crate pijul_interaction

Source
Expand description

Wrapper functions around dialoguer to support Pijul’s different modes of interactivity.

Structs§

Confirm
A prompt that asks the user to select yes or no
Input
A prompt that asks the user to enter text input
Password
A prompt that asks the user to enter a password
ProgressBar
A progress bar that is controlled by code
Select
A prompt that asks the user to choose from a list of items.
Spinner
An animated progress bar to indicate activity

Enums§

InteractionError
Errors that can occur while attempting to interact with the user
InteractiveContext
Different contexts for interacting with Pijul, for example terminal or web browser
PromptType
The different kinds of available prompts

Constants§

APPLY_MESSAGE
COMPLETE_MESSAGE
DOWNLOAD_MESSAGE
OUTPUT_MESSAGE
UPLOAD_MESSAGE

Functions§

get_context
Get the interactive context. If not set, returns an error.
set_context
Set the interactive context, panicking if already set.