Re-exports§
Modules§
- ansi
- A dead simple ANSI terminal color painting library.
- args
- cell
- cob
- colors
- comment
- editor
- element
- format
- highlight
- hstack
- inquire
inquireis a library for building interactive prompts on terminals.- io
- issue
- json
- label
- patch
- spinner
- table
- Print column-aligned text to the console.
- textarea
- upload_
pack - vstack
Macros§
Structs§
- Constraint
- Rendering constraint.
- Default
Context - Gets the default profile. Fails if there is no profile.
- Editor
- Allows for text input in the configured editor.
- Filled
- An object filled with a background color.
- HStack
- Horizontal stack of
Elementobjects that implementsElement. - Label
- A styled string that does not contain any
'\n'and implementsElementandCell. - Line
- A line of text that has styling and can be displayed.
- Paint
- A structure encapsulating an item and styling.
- Select
- Prompt suitable for when you need the user to select one option among many.
- Size
- Size of a text element, in columns and rows.
- Spinner
- A progress spinner.
- Style
- Represents a set of styling options.
- Styled
- Represents a content that when rendered must have the associated style applied to it.
- Table
- Table
Options - Text
Area - Text area.
- VStack
- Vertical stack of
Elementobjects that implementsElement. - VStack
Options - Options for
VStack.
Enums§
- Color
- An enum representing an ANSI color code.
- Input
Error - Interactive
- Paint
Target - Target for paint operations.
- Terminal
File
Constants§
Statics§
- CONFIG
- Render configuration.
Traits§
- Command
- A command that can be run.
- Context
- Context passed to all commands.
- Element
- A text element that has a size and can be rendered to the terminal.
Functions§
- abort
- ask
- blank
- blob
- columns
- confirm
- error
- fail
- header
- headline
- help
- hint
- indented
- input
- Prompts the user for input. If the user cancels the operation,
the operation is interrupted, or no suitable terminal is found,
then
Ok(None)is returned. - label
- Create a new label from a
Paintobject. - manual
- notice_
args - paint
- Shorthand for
Paint::new. - passphrase
- passphrase_
confirm - passphrase_
stdin - prefixed
- println
- rows
- run_
command - run_
command_ args - run_
command_ fn - Execute a function
cmdthat runs a command with parsed theargsand a default context. - select
- spinner
- Create a new spinner with the given message. Sends animation output to
stderrand success or failure messages tostdout. This function handles signals, with there being only one element handling signals at a time, and is a wrapper tospinner_to(). - spinner_
to - Create a new spinner with the given message, and send output to the given writers.
- style
- subcommand
- success_
args - textarea
- Create a new text area.
- tip_
args - usage
- viewport
- warning
Type Aliases§
- Passphrase
- Passphrase input.