Re-exports§
Modules§
Macros§
- cli_
debug - Outputs a debug message.
- cli_
error - Outputs an error message.
- cli_
info - Outputs an informational message.
- cli_
send - Outputs text without a newline.
- cli_
sendln - Outputs text with a newline.
- cli_
trace - Outputs a trace message.
- cli_
warn - Outputs a warning message.
- indexmap
- Create an
IndexMapfrom a list of key-value pairs
Structs§
- CliHelp
Screen - Structure representing a help screen for a CLI command.
- CliProgress
Bar - A progress bar for displaying task completion in the terminal.
- CliRequest
- Represents a parsed CLI command request.
- CliRouter
- The main router for CLI commands.
- Index
Map - A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
Enums§
- CliFormat
- Format validators for command arguments and flags.
Traits§
- CliCommand
- Trait that all CLI commands must implement.
Functions§
- cli_
clear_ screen - Clears the terminal screen.
- cli_
confirm - Requests confirmation from the user.
- cli_
display_ array - Displays a two-column array with proper spacing and word wrapping.
- cli_
display_ table - Displays data in a formatted table.
- cli_
get_ input - Gets text input from the user.
- cli_
get_ multiline_ input - Gets multi-line text input from the user.
- cli_
get_ new_ password - Gets a new password from the user with confirmation and strength validation.
- cli_
get_ option - Prompts the user to select an option from a list.
- cli_
get_ password - Gets a password from the user without displaying the input on screen.
- cli_
header - Displays a formatted header in the terminal.
- cli_
progress_ bar - Creates and displays a new progress bar.
- cli_run
- Executes the CLI command router and processes the appropriate command.
- cli_
text_ editor - Opens a text editor for the user to edit content.